You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-12-07 23:13:07 +02:00
Migrate all requests to result pattern
This commit is contained in:
@@ -133,6 +133,7 @@ func (p *GitLabProvider) getUserInfo(ctx context.Context, s *sessions.SessionSta
|
||||
err := requests.New(userInfoURL.String()).
|
||||
WithContext(ctx).
|
||||
SetHeader("Authorization", "Bearer "+s.AccessToken).
|
||||
Do().
|
||||
UnmarshalInto(&userInfo)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting user info: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user