Skip to content

Commit

Permalink
Hack around to forward bearer token
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedub committed May 18, 2023
1 parent a6e4342 commit d79c216
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/idp/oauth/authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ func (b *IdentityProvider) Authenticate(r *requests.Request) error {
r.Response.IdentityTokenCookie.Enabled = true
r.Response.IdentityTokenCookie.Name = b.config.IdentityTokenCookieName
r.Response.IdentityTokenCookie.Payload = v.(string)
} else if v, exists = accessToken["access_token"]; exists {
r.Response.IdentityTokenCookie.Enabled = true
r.Response.IdentityTokenCookie.Name = b.config.IdentityTokenCookieName
r.Response.IdentityTokenCookie.Payload = v.(string)
}
}

Expand Down

0 comments on commit d79c216

Please sign in to comment.