Instantiating a IDPartner instance without a config object will result in an error
Authorization
Set up your IDPartner as above and pass the following configuration options in:
{ client_id: 'Your application's client ID', callback: 'The location you want the app to return to on success', jwks: 'Private/public keys used to verify and decrypt any JSON Web Token (JWT) issued by the identity provider authorization server
}
A helper method to generate a state, nonce and codeVerifier which is used for validating the Identity response and protecting against cross-site request forgery(CSRF) attacks
Creates an authorization url with a signed JWT (using the private key in the JKWS). Since IDPartner implements the authorization code flow you should redirect to this URL.
Returns the identity provider the user selected from the selector and the JWT code response from the issuer. The identity_provider object contains information about the provider and Know Your Business credentials that you can perform additional verification before request the consented claims. The idp_response_code is the signed and encrypted JWT containing the code used to exchange for identity claims
Required. The query parameters of the callback url. The query parameters contain a signed JWT by IDPartner containing the issuer url as well as the identity provider details such as name.
idp_response_code
string
Required. The JWT response code returned from unpackProxyResponse
proofs
object
Required. The proofs that were generated during the getAuthorizationUrl phase