mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
[CST-14902][CST-15073][CST-15074] Adds ORCID login flow with private email
This commit is contained in:

committed by
Vincenzo Mecca

parent
fca5700012
commit
214a77a65c
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
Observable,
|
||||
of as observableOf,
|
||||
} from 'rxjs';
|
||||
import { Observable, of as observableOf, } from 'rxjs';
|
||||
|
||||
import { AuthMethod } from '../../core/auth/models/auth.method';
|
||||
import { AuthMethodType } from '../../core/auth/models/auth.method-type';
|
||||
@@ -11,6 +8,7 @@ import { EPerson } from '../../core/eperson/models/eperson.model';
|
||||
import { hasValue } from '../empty.util';
|
||||
import { createSuccessfulRemoteDataObject$ } from '../remote-data.utils';
|
||||
import { EPersonMock } from './eperson.mock';
|
||||
import { RetrieveAuthMethodsAction } from '../../core/auth/auth.actions';
|
||||
|
||||
export const authMethodsMock: AuthMethod[] = [
|
||||
new AuthMethod(AuthMethodType.Password, 0),
|
||||
@@ -128,6 +126,7 @@ export class AuthServiceStub {
|
||||
checkAuthenticationCookie() {
|
||||
return;
|
||||
}
|
||||
|
||||
setExternalAuthStatus(externalCookie: boolean) {
|
||||
this._isExternalAuth = externalCookie;
|
||||
}
|
||||
@@ -179,4 +178,16 @@ export class AuthServiceStub {
|
||||
clearRedirectUrl() {
|
||||
return;
|
||||
}
|
||||
|
||||
public replaceToken(token: AuthTokenInfo) {
|
||||
return token;
|
||||
}
|
||||
|
||||
getRetrieveAuthMethodsAction(authStatus: AuthStatus): RetrieveAuthMethodsAction {
|
||||
return;
|
||||
}
|
||||
|
||||
public getExternalServerRedirectUrl(redirectRoute: string, location: string) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user