@@ -17,6 +17,7 @@ export const AuthActionTypes = {
1717 AUTHENTICATED_SUCCESS : type ( 'dspace/auth/AUTHENTICATED_SUCCESS' ) ,
1818 CHECK_AUTHENTICATION_TOKEN : type ( 'dspace/auth/CHECK_AUTHENTICATION_TOKEN' ) ,
1919 CHECK_AUTHENTICATION_TOKEN_COOKIE : type ( 'dspace/auth/CHECK_AUTHENTICATION_TOKEN_COOKIE' ) ,
20+ SET_AUTH_COOKIE_STATUS : type ( 'dspace/auth/SET_AUTH_COOKIE_STATUS' ) ,
2021 RETRIEVE_AUTH_METHODS : type ( 'dspace/auth/RETRIEVE_AUTH_METHODS' ) ,
2122 RETRIEVE_AUTH_METHODS_SUCCESS : type ( 'dspace/auth/RETRIEVE_AUTH_METHODS_SUCCESS' ) ,
2223 RETRIEVE_AUTH_METHODS_ERROR : type ( 'dspace/auth/RETRIEVE_AUTH_METHODS_ERROR' ) ,
@@ -150,6 +151,19 @@ export class CheckAuthenticationTokenCookieAction implements Action {
150151 public type : string = AuthActionTypes . CHECK_AUTHENTICATION_TOKEN_COOKIE ;
151152}
152153
154+ /**
155+ * Sets the authentication cookie status to flag an external authentication response.
156+ */
157+ export class SetAuthCookieStatus implements Action {
158+ public type : string = AuthActionTypes . SET_AUTH_COOKIE_STATUS ;
159+
160+ payload = false ;
161+
162+ constructor ( exists : boolean ) {
163+ this . payload = exists ;
164+ }
165+ }
166+
153167/**
154168 * Sign out.
155169 * @class LogOutAction
@@ -425,6 +439,7 @@ export type AuthActions
425439 | AuthenticationSuccessAction
426440 | CheckAuthenticationTokenAction
427441 | CheckAuthenticationTokenCookieAction
442+ | SetAuthCookieStatus
428443 | RedirectWhenAuthenticationIsRequiredAction
429444 | RedirectWhenTokenExpiredAction
430445 | AddAuthenticationMessageAction
0 commit comments