Skip to main content

OIDCConnection

@hyperledger/identus-sdk v7.0.0


@hyperledger/identus-sdk / plugins/internal/oidc / OIDCConnection

Class: OIDCConnection

Defined in: src/plugins/internal/oidc/connection/OIDCConnection.ts:7

Define the structure of a Connection

Connections are used to capture Protocol specific behaviours and metadata

Implements

Constructors

Constructor

new OIDCConnection(issuerMeta: { authorization_servers?: string[]; batch_credential_endpoint?: string; credential_configurations_supported: {[key: string]: { credential_definition: { credentialSubject?: { }; type: string[]; }; credential_signing_alg_values_supported?: string[]; cryptographic_binding_methods_supported?: string[]; format: string; proof_types_supported?: {[key: string]: { proof_signing_alg_values_supported: string[]; }; }; scope?: string; }; }; credential_endpoint: string; credential_identifiers_supported?: boolean; credential_issuer: string; credential_response_encryption?: { alg_values_supported: string[]; enc_values_supported: string[]; encryption_required: boolean; }; deferred_credential_endpoint?: string; display?: { }; notification_endpoint?: string; signed_metadata?: string; }, scopes: string[]): OIDCConnection

Defined in: src/plugins/internal/oidc/connection/OIDCConnection.ts:12

Parameters

ParameterType
issuerMeta{ authorization_servers?: string[]; batch_credential_endpoint?: string; credential_configurations_supported: {[key: string]: { credential_definition: { credentialSubject?: { }; type: string[]; }; credential_signing_alg_values_supported?: string[]; cryptographic_binding_methods_supported?: string[]; format: string; proof_types_supported?: {[key: string]: { proof_signing_alg_values_supported: string[]; }; }; scope?: string; }; }; credential_endpoint: string; credential_identifiers_supported?: boolean; credential_issuer: string; credential_response_encryption?: { alg_values_supported: string[]; enc_values_supported: string[]; encryption_required: boolean; }; deferred_credential_endpoint?: string; display?: { }; notification_endpoint?: string; signed_metadata?: string; }
issuerMeta.authorization_servers?string[]
issuerMeta.batch_credential_endpoint?string
issuerMeta.credential_configurations_supported{[key: string]: { credential_definition: { credentialSubject?: { }; type: string[]; }; credential_signing_alg_values_supported?: string[]; cryptographic_binding_methods_supported?: string[]; format: string; proof_types_supported?: {[key: string]: { proof_signing_alg_values_supported: string[]; }; }; scope?: string; }; }
issuerMeta.credential_endpointstring
issuerMeta.credential_identifiers_supported?boolean
issuerMeta.credential_issuerstring
issuerMeta.credential_response_encryption?{ alg_values_supported: string[]; enc_values_supported: string[]; encryption_required: boolean; }
issuerMeta.credential_response_encryption.alg_values_supportedstring[]
issuerMeta.credential_response_encryption.enc_values_supportedstring[]
issuerMeta.credential_response_encryption.encryption_requiredboolean
issuerMeta.deferred_credential_endpoint?string
issuerMeta.display?{ }
issuerMeta.notification_endpoint?string
issuerMeta.signed_metadata?string
scopesstring[]

Returns

OIDCConnection

Properties

PropertyModifierTypeDefault valueDescriptionDefined in
issuerMetareadonly{ authorization_servers?: string[]; batch_credential_endpoint?: string; credential_configurations_supported: {[key: string]: { credential_definition: { credentialSubject?: { }; type: string[]; }; credential_signing_alg_values_supported?: string[]; cryptographic_binding_methods_supported?: string[]; format: string; proof_types_supported?: {[key: string]: { proof_signing_alg_values_supported: string[]; }; }; scope?: string; }; }; credential_endpoint: string; credential_identifiers_supported?: boolean; credential_issuer: string; credential_response_encryption?: { alg_values_supported: string[]; enc_values_supported: string[]; encryption_required: boolean; }; deferred_credential_endpoint?: string; display?: { }; notification_endpoint?: string; signed_metadata?: string; }undefined-src/plugins/internal/oidc/connection/OIDCConnection.ts:13
issuerMeta.authorization_servers?publicstring[]undefined-src/plugins/internal/oidc/types.ts:86
issuerMeta.batch_credential_endpoint?publicstringundefined-src/plugins/internal/oidc/types.ts:95
issuerMeta.credential_configurations_supportedpublic{[key: string]: { credential_definition: { credentialSubject?: { }; type: string[]; }; credential_signing_alg_values_supported?: string[]; cryptographic_binding_methods_supported?: string[]; format: string; proof_types_supported?: {[key: string]: { proof_signing_alg_values_supported: string[]; }; }; scope?: string; }; }undefined-src/plugins/internal/oidc/types.ts:111
issuerMeta.credential_endpointpublicstringundefined-src/plugins/internal/oidc/types.ts:90
issuerMeta.credential_identifiers_supported?publicbooleanundefined-src/plugins/internal/oidc/types.ts:175
issuerMeta.credential_issuerpublicstringundefined-src/plugins/internal/oidc/types.ts:80
issuerMeta.credential_response_encryption?public{ alg_values_supported: string[]; enc_values_supported: string[]; encryption_required: boolean; }undefined-src/plugins/internal/oidc/types.ts:155
issuerMeta.credential_response_encryption.alg_values_supportedpublicstring[]undefined-src/plugins/internal/oidc/types.ts:159
issuerMeta.credential_response_encryption.enc_values_supportedpublicstring[]undefined-src/plugins/internal/oidc/types.ts:163
issuerMeta.credential_response_encryption.encryption_requiredpublicbooleanundefined-src/plugins/internal/oidc/types.ts:169
issuerMeta.deferred_credential_endpoint?publicstringundefined-src/plugins/internal/oidc/types.ts:100
issuerMeta.display?public{ }undefined-src/plugins/internal/oidc/types.ts:178
issuerMeta.notification_endpoint?publicstringundefined-src/plugins/internal/oidc/types.ts:105
issuerMeta.signed_metadata?publicstringundefined-src/plugins/internal/oidc/types.ts:108
scopesreadonlystring[]undefined-src/plugins/internal/oidc/connection/OIDCConnection.ts:14
statepublicStateConnection.State.NEWcurrent condition of the connectionsrc/plugins/internal/oidc/connection/OIDCConnection.ts:8
tokenResponse?public{ access_token: string; c_nonce?: string; c_nonce_expires_in?: number; expires_in?: number; id_token?: string; refresh_expires_in?: number; refresh_token?: string; scope?: string; session_state?: string; token_type: string; }undefined-src/plugins/internal/oidc/connection/OIDCConnection.ts:9
tokenResponse.access_tokenpublicstringundefined-src/plugins/internal/oidc/types.ts:545
tokenResponse.c_nonce?publicstringundefined-src/plugins/internal/oidc/types.ts:548
tokenResponse.c_nonce_expires_in?publicnumberundefined-src/plugins/internal/oidc/types.ts:549
tokenResponse.expires_in?publicnumberundefined-src/plugins/internal/oidc/types.ts:547
tokenResponse.id_token?publicstringundefined-src/plugins/internal/oidc/types.ts:552
tokenResponse.refresh_expires_in?publicnumberundefined-src/plugins/internal/oidc/types.ts:551
tokenResponse.refresh_token?publicstringundefined-src/plugins/internal/oidc/types.ts:550
tokenResponse.scope?publicstringundefined-src/plugins/internal/oidc/types.ts:553
tokenResponse.session_state?publicstringundefined-src/plugins/internal/oidc/types.ts:554
tokenResponse.token_typepublicstringundefined-src/plugins/internal/oidc/types.ts:546
urireadonlystringundefinedunique identifer for the connectionsrc/plugins/internal/oidc/connection/OIDCConnection.ts:10

Methods

send()

send(request: any, ctx: Context): Promise<ApiResponse<unknown> | undefined>

Defined in: src/plugins/internal/oidc/connection/OIDCConnection.ts:19

handle delivering a Message to the connected entity

Parameters

ParameterType
requestany
ctxContext

Returns

Promise<ApiResponse<unknown> | undefined>

Implementation of

Connection.send