feat(console): add some well known links in app detail, add refresh token grant type in dev mode creation (#4826)

* fix(console): add some well known links

* [servicename]/v1

* add refresh token grant type to devmode creation
This commit is contained in:
Max Peintner
2022-12-12 10:40:22 +01:00
committed by GitHub
parent 47ffa52f0f
commit bd1231c2a2
8 changed files with 47 additions and 6 deletions
@@ -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,
};
});
});
}