@@ -641,7 +641,7 @@ func (p *OAuthProxy) SignIn(rw http.ResponseWriter, req *http.Request) {
641641 }
642642}
643643
644−//UserInfo endpoint outputs session email and preferred username in JSON format
644+// UserInfo endpoint outputs session email and preferred username in JSON format
645645func (p *OAuthProxy) UserInfo(rw http.ResponseWriter, req *http.Request) {
646646
647647 session, err := p.getAuthenticatedSession(rw, req)
@@ -805,6 +805,8 @@ func (p *OAuthProxy) redeemCode(req *http.Request) (*sessionsapi.SessionState, e
805805func (p *OAuthProxy) enrichSessionState(ctx context.Context, s *sessionsapi.SessionState) error {
806806 var err error
807807 if s.Email == "" {
808+ // TODO(@NickMeves): Remove once all provider are updated to implement EnrichSession
809+ // nolint:staticcheck
808810 s.Email, err = p.provider.GetEmailAddress(ctx, s)
809811 if err != nil && !errors.Is(err, providers.ErrNotImplemented) {
810812 return err
@@ -1106,7 +1108,7 @@ func (p *OAuthProxy) getAuthenticatedSession(rw http.ResponseWriter, req *http.R
11061108// TODO (@NickMeves): This method is a placeholder to be extended but currently
11071109// fails the linter. Remove the nolint when functionality expands.
11081110//
1109−//nolint:S1008
1111+//nolint:gosimple
11101112func authOnlyAuthorize(req *http.Request, s *sessionsapi.SessionState) bool {
11111113 // Allow secondary group restrictions based on the `allowed_groups`
11121114 // querystring parameter