startAuthorization
suspend fun startAuthorization(oauthMetadata: OAuth2AuthorizationServerMetadata, authorizationServer: String, state: String = uuid4().toString(), issuerState: String? = null, authorizationDetails: Set<OpenIdAuthorizationDetails>? = null, scope: String? = null): KmmResult<OAuth2KtorClient.OpenUrlForAuthnRequest>(source)
Builds the authorization request (AuthenticationRequestParameters) to start authentication at the authorization server.
Prefers building the authn request by using scope (from SupportedCredentialFormat), as advised in OpenID4VC HAIP, but falls back to authorization details if needed.
Uses Pushed Authorization Requests RFC 9126 if advised by the authorization server.
Clients need to continue the process (after getting back from the browser) with requestTokenWithAuthCode.