We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c42d0 commit 2f4a826Copy full SHA for 2f4a826
authn/auth_info.go
@@ -71,7 +71,13 @@ func (a *AuthInfo) GetExtra() map[string][]string {
71
// but this should be removed in the not-to-distant future
72
return map[string][]string{"id-token": {a.id.token}}
73
}
74
- return map[string][]string{}
+
75
+ result := map[string][]string{}
76
+ if a.at.Rest.ServiceIdentity != "" {
77
+ result[ServiceIdentityKey] = []string{a.at.Rest.ServiceIdentity}
78
+ }
79
80
+ return result
81
82
83
func (a *AuthInfo) GetAudience() []string {
authn/const.go
@@ -6,4 +6,6 @@ const (
6
7
httpHeaderAccessToken = "X-Access-Token"
8
httpHeaderIDToken = "X-Grafana-Id"
9
10
+ ServiceIdentityKey = "serviceIdentity"
11
)
0 commit comments