Added typedoc and minor test update

This commit is contained in:
Michael W Spalti
2023-04-19 11:36:42 -07:00
parent e336660cdd
commit b1f3b785e1
5 changed files with 17 additions and 6 deletions

View File

@@ -156,10 +156,19 @@ export class AuthService {
return this.store.pipe(select(isAuthenticatedLoaded));
}
/**
* Used to set the external authentication status when authenticating via an
* external authentication system (e.g. Shibboleth).
* @param external
*/
public setExternalAuthStatus(external: boolean) {
this.store.dispatch(new SetAuthCookieStatus(external));
}
/**
* Returns true if an external authentication system (e.g. Shibboleth) is being used
* for authentication. Returns false otherwise.
*/
public isExternalAuthentication(): Observable<boolean> {
return this.store.pipe(
select(getExternalAuthCookieStatus));