[CST-14902][CST-15073][CST-15074] Adds ORCID login flow with private email

This commit is contained in:
Alisa Ismailati
2023-09-25 18:10:26 +02:00
committed by Vincenzo Mecca
parent fca5700012
commit 214a77a65c
89 changed files with 3452 additions and 276 deletions

View File

@@ -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;
}
}