Skip to content

Commit

Permalink
Review#1: fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Nov 9, 2020
1 parent cb9b05c commit 0670897
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ export class KerberosAuthenticationProvider extends BaseAuthenticationProvider {
return AuthenticationResult.failed(err);
}

// If refresh token is no longer valid, let's check if the request is allowed to start a new session, and if so try
// to renegotiate new tokens using SPNEGO. We allow this because expired underlying token is an implementation
// detail and Kibana user facing session is still valid.
// If refresh token is no longer valid, let's try to renegotiate new tokens using SPNEGO. We
// allow this because expired underlying token is an implementation detail and Kibana user
// facing session is still valid.
if (refreshedTokenPair === null) {
this.logger.debug('Both access and refresh tokens are expired. Re-authenticating...');
return this.authenticateViaSPNEGO(request, state);
Expand Down

0 comments on commit 0670897

Please sign in to comment.