Skip to content

Commit 18d146e

Browse files
committed
Add a typescript interface for the oidc metadata returned from the getMetadata function on the MetadataService
1 parent b11009c commit 18d146e

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

index.d.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface MetadataService {
5757

5858
metadataUrl?: string;
5959

60-
getMetadata(): Promise<any>;
60+
getMetadata(): Promise<OidcMetadata>;
6161

6262
getIssuer(): Promise<string>;
6363

@@ -305,3 +305,44 @@ export class CordovaPopupNavigator {
305305
export class CordovaIFrameNavigator {
306306
prepare(params: any): Promise<CordovaPopupWindow>;
307307
}
308+
309+
310+
export interface OidcMetadata {
311+
issuer: string;
312+
authorization_endpoint:string;
313+
token_endpoint: string;
314+
token_endpoint_auth_methods_supported:string[];
315+
token_endpoint_auth_signing_alg_values_supported: string[];
316+
userinfo_endpoint: string;
317+
check_session_iframe: string;
318+
end_session_endpoint: string;
319+
jwks_uri: string;
320+
registration_endpoint: string;
321+
scopes_supported: string[];
322+
response_types_supported: string[];
323+
acr_values_supported: string[];
324+
subject_types_supported: string[];
325+
userinfo_signing_alg_values_supported: string[];
326+
userinfo_encryption_alg_values_supported: string[];
327+
userinfo_encryption_enc_values_supported: string[];
328+
id_token_signing_alg_values_supported: string[];
329+
id_token_encryption_alg_values_supported: string[];
330+
id_token_encryption_enc_values_supported: string[];
331+
request_object_signing_alg_values_supported: string[];
332+
display_values_supported: string[];
333+
claim_types_supported: string[];
334+
claims_supported: string[];
335+
claims_parameter_supported: boolean;
336+
service_documentation: string;
337+
ui_locales_supported: string[];
338+
339+
revocation_endpoint: string;
340+
introspection_endpoint: string;
341+
frontchannel_logout_supported: boolean;
342+
frontchannel_logout_session_supported: boolean;
343+
backchannel_logout_supported: boolean;
344+
backchannel_logout_session_supported: boolean;
345+
grant_types_supported: string[];
346+
response_modes_supported: string[];
347+
code_challenge_methods_supported: string[];
348+
}

0 commit comments

Comments
 (0)