Function generateOidcAuthorizationUrl

Generate a URL to attempt authorization with the OP See https://openid.net/specs/openid-connect-basic-1_0.html#CodeRequest

validated metadata from OP discovery

this client's id as registered with the OP

used to establish the session on return from the OP

used to establish the session on return from the OP

state

indicates to the OP which flow the user should see - eg login or registration See https://openid.net/specs/openid-connect-prompt-create-1_0.html#name-prompt-parameter

value to append to the opaque state identifier to uniquely identify the callback

a Promise with the url as a string

  • Experimental

    Parameters

    • __namedParameters: {
          clientId: string;
          homeserverUrl: string;
          identityServerUrl?: string;
          metadata: ValidatedIssuerMetadata;
          nonce: string;
          prompt?: string;
          redirectUri: string;
          urlState?: string;
      }

    Returns Promise<string>