Skip to content

Commit d8fca07

Browse files
committed
use errLoginFailed instead of errors.New to avoid merge conflict with pr hashicorp#131
1 parent 0a9fe14 commit d8fca07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path_oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (b *jwtAuthBackend) pathCallback(ctx context.Context, req *logical.Request,
296296
case "access_token":
297297
md = string(token.AccessToken())
298298
default:
299-
return nil, errors.New("Unrecognized oauth2 metadata name " + mdname)
299+
return logical.ErrorResponse(errLoginFailed + " Unrecognized oauth2 metadata name " + mdname), nil
300300
}
301301
oauth2Metadata[mdname] = md
302302
}

0 commit comments

Comments
 (0)