Skip to content

Add OAuth2 in UI #297

Closed
9 of 9 issues completed
Closed

Description

@andrei2699

Roles and token

should hide certain features based on roles

Should use https://www.npmjs.com/package/angular-auth-oidc-client


The high level flow

[ App Launch ]
│
▼
Fetch /api/config/auth ────────► Init OIDC Library (angular-auth-oidc-client)
│
▼
Check Auth Session ───────► Not Logged In? ──► Redirect to IdP
│
▼ (Logged In)
Attach Bearer Token to HttpInterceptor
│
▼
Navigate to /projects/:id
│
▼
Fetch /api/projects/:id/my-permissions ──► Store in Angular Signal
│
▼
Render UI (*appHasPermission) & Activate Route Guards

Metadata

Metadata

Assignees

Labels

area/authAuthentication and Authorizationarea/uiScriptBee ClientdocumentationScriptBee documentation

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions