Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions shell/store/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,18 +404,18 @@ export const actions = {
// Unload plugins - we will load again on login
await rootState.$plugin.logout();

let logoutAction = 'logout';
let logoutAction = '';
const data = {};

// SLO - Single-sign logout - will logout auth provider from all places where it's logged in
if (options.slo) {
logoutAction = 'logoutAll';
logoutAction = '?logoutAll';
data.finalRedirectUrl = returnTo({ isSlo: true }, this);
}

try {
const res = await dispatch('rancher/request', {
url: `/v3/tokens?action=${ logoutAction }`,
url: `/v1/logout${ logoutAction }`,
method: 'post',
data,
headers: { 'Content-Type': 'application/json' },
Expand Down
Loading