1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-19 00:27:39 +02:00

Remove GetUserName method from Provider

This commit is contained in:
Nick Meves
2020-09-27 15:18:12 -07:00
parent 0da45e97e1
commit d9c141ae7c
3 changed files with 0 additions and 14 deletions

View File

@ -368,12 +368,6 @@ func (p *OAuthProxy) enrichSessionState(ctx context.Context, s *sessionsapi.Sess
return err
}
}
if s.User == "" {
s.User, err = p.provider.GetUserName(ctx, s)
if err != nil && !errors.Is(err, providers.ErrNotImplemented) {
return err
}
}
return p.provider.EnrichSessionState(ctx, s)
}