Forward Auth refactor and adding PROXY_FORWARD_AUTH_LOGOUT_URI env

This commit is contained in:
advplyr 2022-12-18 11:37:45 -06:00
parent 8558baf30a
commit 73a61872fa
9 changed files with 139 additions and 68 deletions

View file

@ -18,6 +18,8 @@ export const state = () => ({
export const getters = {
getIsRoot: (state) => state.user && state.user.type === 'root',
getIsAdminOrUp: (state) => state.user && (state.user.type === 'admin' || state.user.type === 'root'),
getIsForwardAuth: (state) => state.user && state.user.isForwardAuth,
getForwardAuthLogoutURI: (state) => state.user ? state.user.forwardAuthLogoutURI : null,
getToken: (state) => {
return state.user ? state.user.token : null
},