-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reset MFA section added for profile dropdown. * MFA polished. * FAQ - MFA reset steps changed to bullet points. * add to mobile menu * rearrange imports * implement onDestroy --------- Co-authored-by: Panos Hatzinikolaou <[email protected]>
- Loading branch information
1 parent
83ddef6
commit 8121909
Showing
7 changed files
with
119 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
workspace/apps/pidp/src/app/features/shell/components/navbar-menu/nav-menu.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { IdentityProvider } from '@app/features/auth/enums/identity-provider.enum'; | ||
|
||
export interface Credential { | ||
id: number; | ||
identityProvider: IdentityProvider; | ||
} |
28 changes: 28 additions & 0 deletions
28
...pace/apps/pidp/src/app/features/shell/components/navbar-menu/nav-menu.resource.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { HttpErrorResponse } from "@angular/common/http"; | ||
import { Injectable } from "@angular/core"; | ||
import { ApiHttpClient } from "@app/core/resources/api-http-client.service"; | ||
import { catchError, Observable, throwError } from "rxjs"; | ||
import { Credential } from "./nav-menu.model"; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class NavMenuResource { | ||
public constructor( | ||
protected apiResource: ApiHttpClient | ||
) {} | ||
|
||
public getCredentials(partyId: number): Observable<Credential[]> { | ||
return this.apiResource | ||
.get<Credential[]>(this.getResourcePath(partyId)) | ||
.pipe( | ||
catchError((error: HttpErrorResponse) => { | ||
return throwError(() => error); | ||
}), | ||
); | ||
} | ||
|
||
protected getResourcePath(partyId: number): string { | ||
return `parties/${partyId}/credentials`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters