mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Test CORS policy'
This commit is contained in:
@@ -10,6 +10,7 @@ import { AuthTokenInfo } from './models/auth-token-info.model';
|
||||
|
||||
export const AuthActionTypes = {
|
||||
AUTHENTICATE: type('dspace/auth/AUTHENTICATE'),
|
||||
SHIBB_LOGIN: type('dspace/auth/SHIBB_LOGIN'),
|
||||
AUTHENTICATE_ERROR: type('dspace/auth/AUTHENTICATE_ERROR'),
|
||||
AUTHENTICATE_SUCCESS: type('dspace/auth/AUTHENTICATE_SUCCESS'),
|
||||
AUTHENTICATED: type('dspace/auth/AUTHENTICATED'),
|
||||
@@ -55,6 +56,22 @@ export class AuthenticateAction implements Action {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ShibbLoginAction.
|
||||
* @class ShibbLoginAction
|
||||
* @implements {Action}
|
||||
*/
|
||||
export class ShibbLoginAction implements Action {
|
||||
public type: string = AuthActionTypes.SHIBB_LOGIN;
|
||||
payload: {
|
||||
ssoLoginUrl: string;
|
||||
};
|
||||
|
||||
constructor(ssoLoginUrl: string) {
|
||||
this.payload = { ssoLoginUrl };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if user is authenticated.
|
||||
* @class AuthenticatedAction
|
||||
@@ -366,6 +383,7 @@ export class SetRedirectUrlAction implements Action {
|
||||
*/
|
||||
export type AuthActions
|
||||
= AuthenticateAction
|
||||
| ShibbLoginAction
|
||||
| AuthenticatedAction
|
||||
| AuthenticatedErrorAction
|
||||
| AuthenticatedSuccessAction
|
||||
|
Reference in New Issue
Block a user