diff --git a/console/src/app/pages/projects/apps/app-create/app-create.component.ts b/console/src/app/pages/projects/apps/app-create/app-create.component.ts index caf0cefa49..3e563cc107 100644 --- a/console/src/app/pages/projects/apps/app-create/app-create.component.ts +++ b/console/src/app/pages/projects/apps/app-create/app-create.component.ts @@ -15,7 +15,6 @@ import { OIDCAuthMethodType, OIDCGrantType, OIDCResponseType, - SAMLConfig, } from 'src/app/proto/generated/zitadel/app_pb'; import { AddAPIAppRequest, @@ -111,8 +110,7 @@ export class AppCreateComponent implements OnInit, OnDestroy { }[] = [ { type: OIDCGrantType.OIDC_GRANT_TYPE_AUTHORIZATION_CODE, checked: true, disabled: false }, { type: OIDCGrantType.OIDC_GRANT_TYPE_IMPLICIT, checked: false, disabled: true }, - // { type: OIDCGrantType.OIDCGRANTTYPE_REFRESH_TOKEN, checked: false, disabled: true }, - // TODO show when implemented + { type: OIDCGrantType.OIDC_GRANT_TYPE_REFRESH_TOKEN, checked: false, disabled: true }, ]; public readonly separatorKeysCodes: number[] = [ENTER, COMMA, SPACE]; diff --git a/console/src/app/pages/projects/apps/app-detail/app-detail.component.html b/console/src/app/pages/projects/apps/app-detail/app-detail.component.html index 1337a638d4..14f6ea3855 100644 --- a/console/src/app/pages/projects/apps/app-detail/app-detail.component.html +++ b/console/src/app/pages/projects/apps/app-detail/app-detail.component.html @@ -389,6 +389,14 @@ + +
+
+

{{ environmentV.key }}

@@ -407,6 +415,25 @@
+ +
+
+

{{ wellKnownV.key }}

+
+
+ +
+
+
+
diff --git a/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts b/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts index 7a3248e4b2..6c32c315c8 100644 --- a/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts +++ b/console/src/app/pages/projects/apps/app-detail/app-detail.component.ts @@ -79,6 +79,7 @@ export class AppDetailComponent implements OnInit, OnDestroy { public app?: App.AsObject; public environmentMap: { [key: string]: string } = {}; + public wellKnownMap: { [key: string]: string } = {}; public oidcResponseTypes: OIDCResponseType[] = [ OIDCResponseType.OIDC_RESPONSE_TYPE_CODE, @@ -176,10 +177,20 @@ export class AppDetailComponent implements OnInit, OnDestroy { this.http.get('./assets/environment.json').subscribe((env: any) => { this.environmentMap = { issuer: env.issuer, - adminServiceUrl: env.api, - mgmtServiceUrl: env.api, - authServiceUrl: env.api, + adminServiceUrl: `${env.api}/auth/v1`, + mgmtServiceUrl: `${env.api}/management/v1`, + authServiceUrl: `${env.api}/admin/v1`, }; + + this.http.get(`${env.issuer}/.well-known/openid-configuration`).subscribe((wellKnown: any) => { + this.wellKnownMap = { + authorization_endpoint: wellKnown.authorization_endpoint, + end_session_endpoint: wellKnown.end_session_endpoint, + introspection_endpoint: wellKnown.introspection_endpoint, + token_endpoint: wellKnown.token_endpoint, + userinfo_endpoint: wellKnown.userinfo_endpoint, + }; + }); }); } diff --git a/console/src/assets/i18n/de.json b/console/src/assets/i18n/de.json index 12e1383848..52869beb60 100644 --- a/console/src/assets/i18n/de.json +++ b/console/src/assets/i18n/de.json @@ -1683,6 +1683,7 @@ "TITLEFIRST": "Name der Applikation.", "TYPETITLE": "Art der Anwendung", "OIDC": { + "WELLKNOWN": "Weitere Links können vom Discovery endpoint abgerufen werden.", "INFO": { "ISSUER": "Issuer", "CLIENTID": "Client Id" diff --git a/console/src/assets/i18n/en.json b/console/src/assets/i18n/en.json index d84f0e537a..2b29063c3d 100644 --- a/console/src/assets/i18n/en.json +++ b/console/src/assets/i18n/en.json @@ -1683,6 +1683,7 @@ "TITLEFIRST": "Name of the application", "TYPETITLE": "Type of application", "OIDC": { + "WELLKNOWN": "Further links can be retrieved from the discovery endpoint.", "INFO": { "ISSUER": "Issuer", "CLIENTID": "Client Id" diff --git a/console/src/assets/i18n/fr.json b/console/src/assets/i18n/fr.json index 2dfdf47aec..90187509db 100644 --- a/console/src/assets/i18n/fr.json +++ b/console/src/assets/i18n/fr.json @@ -1679,6 +1679,7 @@ "ORIGINS": "Origines", "NOTANORIGIN": "La valeur saisie n'est pas une origine", "OIDC": { + "WELLKNOWN": "Pour plus d'informations, consultez le discovery endpoint.", "INFO": { "ISSUER": "Émetteur", "CLIENTID": "Id client" diff --git a/console/src/assets/i18n/it.json b/console/src/assets/i18n/it.json index e85306dbf9..6f7f238fcd 100644 --- a/console/src/assets/i18n/it.json +++ b/console/src/assets/i18n/it.json @@ -1683,6 +1683,7 @@ "TITLEFIRST": "Nome dell' applicazione", "TYPETITLE": "Che tipo di applicazione vuoi creare?", "OIDC": { + "WELLKNOWN": "Per ulteriori informazioni, consultare il sito discovery endpoint.", "INFO": { "ISSUER": "Issuer", "CLIENTID": "Client ID" diff --git a/console/src/assets/i18n/zh.json b/console/src/assets/i18n/zh.json index a87e777543..036987ab9e 100644 --- a/console/src/assets/i18n/zh.json +++ b/console/src/assets/i18n/zh.json @@ -1678,6 +1678,7 @@ "ORIGINS": "其他来源", "NOTANORIGIN": "输入的值不是有效来源", "OIDC": { + "WELLKNOWN": "欲了解更多信息,请看发现端点。", "INFO": { "ISSUER": "Issuer", "CLIENTID": "Client Id"