mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
authenticate: fix user-info call for AWS cognito (#792)
This commit is contained in:
parent
b16bc5e090
commit
988477c90d
3 changed files with 140 additions and 1 deletions
|
@ -125,7 +125,7 @@ func (p *Provider) Authenticate(ctx context.Context, code string, v interface{})
|
|||
//
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#UserInfo
|
||||
func (p *Provider) updateUserInfo(ctx context.Context, t *oauth2.Token, v interface{}) error {
|
||||
userInfo, err := p.Provider.UserInfo(ctx, oauth2.StaticTokenSource(t))
|
||||
userInfo, err := getUserInfo(ctx, p.Provider, oauth2.StaticTokenSource(t))
|
||||
if err != nil {
|
||||
return fmt.Errorf("identity/oidc: user info endpoint: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue