IO Wallet SDK
    Preparing search index...

    Interface ExtractGrantDetailsOptions

    Options for extracting grant details from a credential offer.

    interface ExtractGrantDetailsOptions {
        config: IoWalletSdkConfig;
        credentialOffer:
            | {
                credential_configuration_ids: string[];
                credential_issuer: string;
                grants: {
                    authorization_code: {
                        authorization_server?: string;
                        issuer_state?: string;
                        scope: string;
                    };
                };
            }
            | {
                credential_configuration_ids: string[];
                credential_issuer: string;
                grants: {
                    authorization_code: {
                        authorization_server?: string;
                        issuer_state?: string;
                    };
                };
            };
    }

    Hierarchy (View Summary)

    Index

    Properties

    config: IoWalletSdkConfig
    credentialOffer:
        | {
            credential_configuration_ids: string[];
            credential_issuer: string;
            grants: {
                authorization_code: {
                    authorization_server?: string;
                    issuer_state?: string;
                    scope: string;
                };
            };
        }
        | {
            credential_configuration_ids: string[];
            credential_issuer: string;
            grants: {
                authorization_code: {
                    authorization_server?: string;
                    issuer_state?: string;
                };
            };
        }

    The credential offer to extract grant details from.

    Type Declaration

    • {
          credential_configuration_ids: string[];
          credential_issuer: string;
          grants: {
              authorization_code: {
                  authorization_server?: string;
                  issuer_state?: string;
                  scope: string;
              };
          };
      }
      • credential_configuration_ids: string[]

        REQUIRED. Array of credential configuration identifiers. References the types of credentials offered as defined in the Credential Issuer metadata.

      • credential_issuer: string

        REQUIRED. HTTPS URL of the Credential Issuer. The Credential Issuer from which the wallet will request credentials.

      • grants: {
            authorization_code: {
                authorization_server?: string;
                issuer_state?: string;
                scope: string;
            };
        }

        REQUIRED. Grant information for the credential offer. IT-Wallet v1.3 requires authorization_code grant.

        • authorization_code: { authorization_server?: string; issuer_state?: string; scope: string }

          REQUIRED. Authorization Code grant details. IT-Wallet v1.3 only supports authorization_code grant.

          • Optionalauthorization_server?: string

            CONDITIONALLY REQUIRED. HTTPS URL of the Authorization Server. REQUIRED only when the Credential Issuer uses multiple Authorization Servers. If present, MUST match one of the authorization_servers in the Credential Issuer metadata.

          • Optionalissuer_state?: string

            OPTIONAL. String value representing the issuer state. Used to correlate the authorization request with the credential offer.

          • scope: string

            REQUIRED. OAuth 2.0 scope value. Defines the scope of access requested by the credential offer.

    • {
          credential_configuration_ids: string[];
          credential_issuer: string;
          grants: {
              authorization_code: {
                  authorization_server?: string;
                  issuer_state?: string;
              };
          };
      }
      • credential_configuration_ids: string[]

        REQUIRED. Array of credential configuration identifiers. References the types of credentials offered as defined in the Credential Issuer metadata.

      • credential_issuer: string

        REQUIRED. HTTPS URL of the Credential Issuer. The Credential Issuer from which the wallet will request credentials.

      • grants: { authorization_code: { authorization_server?: string; issuer_state?: string } }

        REQUIRED. Grant information for the credential offer. IT-Wallet v1.4 requires authorization_code grant.

        • authorization_code: { authorization_server?: string; issuer_state?: string }

          REQUIRED. Authorization Code grant details. IT-Wallet v1.4 only supports authorization_code grant.

          • Optionalauthorization_server?: string

            CONDITIONALLY REQUIRED. HTTPS URL of the Authorization Server. REQUIRED only when the Credential Issuer uses multiple Authorization Servers. If present, MUST match one of the authorization_servers in the Credential Issuer metadata.

          • Optionalissuer_state?: string

            OPTIONAL. String value representing the issuer state. Used to correlate the authorization request with the credential offer.