feat(console): OAuth provider template (#5377)

implements oauth template for console
Co-authored-by: Elio Bischof <[email protected]>
This commit is contained in:
Max Peintner
2023-03-10 15:28:18 +00:00
committed by GitHub
parent 1ec6c451ca
commit 0c704966a2
20 changed files with 764 additions and 1 deletions
@@ -46,6 +46,10 @@
<mat-icon class="idp-icon" svgIcon="mdi_openid" alt="oidc" />
Generic OIDC
</div>
<div class="idp-table-provider-type" *ngSwitchCase="ProviderType.PROVIDER_TYPE_OAUTH">
<img class="idp-logo" src="../../../assets/images/idp/oauth.svg" alt="oauth" />
Generic OAuth
</div>
<div class="idp-table-provider-type" *ngSwitchCase="ProviderType.PROVIDER_TYPE_JWT">
<mat-icon class="idp-icon" svgIcon="mdi_jwt" alt="jwt" />
Generic JWT
@@ -228,6 +228,8 @@ export class IdpTableComponent implements OnInit {
switch (row.type) {
case ProviderType.PROVIDER_TYPE_OIDC:
return [row.owner === IDPOwnerType.IDP_OWNER_TYPE_SYSTEM ? '/instance' : '/org', 'provider', 'oidc', row.id];
case ProviderType.PROVIDER_TYPE_OAUTH:
return [row.owner === IDPOwnerType.IDP_OWNER_TYPE_SYSTEM ? '/instance' : '/org', 'provider', 'oauth', row.id];
case ProviderType.PROVIDER_TYPE_JWT:
return [row.owner === IDPOwnerType.IDP_OWNER_TYPE_SYSTEM ? '/instance' : '/org', 'provider', 'jwt', row.id];
case ProviderType.PROVIDER_TYPE_GOOGLE: