Skip to content

Commit

Permalink
Review#1: handle review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Jun 24, 2020
1 parent 244df16 commit beb87fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Authenticator', () => {
).toThrowError('Provider name "__http__" is reserved.');
});

it('properly set `loggedOut` URL.', () => {
it('properly sets `loggedOut` URL.', () => {
const basicAuthenticationProviderMock = jest.requireMock('./providers/basic')
.BasicAuthenticationProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe('SAMLAuthenticationProvider', () => {
{ requestId: 'some-request-id', redirectURL: '', realm: 'test-realm' }
)
).resolves.toEqual(
AuthenticationResult.redirectTo('/base-path/', {
AuthenticationResult.redirectTo('/mock-server-basepath/', {
state: {
accessToken: 'user-initiated-login-token',
refreshToken: 'user-initiated-login-refresh-token',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class SAMLAuthenticationProvider extends BaseAuthenticationProvider {
? await this.performIdPInitiatedSingleLogout(request)
: state
? await this.performUserInitiatedSingleLogout(state.accessToken!, state.refreshToken!)
: // Once Elasticsearch can consume logout response we'll be sending it here.
: // Once Elasticsearch can consume logout response we'll be sending it here. See https://github.com/elastic/elasticsearch/issues/40901
null;

// Having non-null `redirect` field within logout response means that IdP
Expand Down

0 comments on commit beb87fc

Please sign in to comment.