authorize
open suspend override fun authorize(input: AuthenticationRequestParameters, loadUserFun: OAuth2LoadUserFun): KmmResult<AuthenticationResponseResult.Redirect>(source)
Builds the authentication response. Send this result as HTTP Header Location
in a 302 response to the client.
Return
URL build from client's redirect_uri
with a code
query parameter containing a fresh authorization code from codeService.
Parameters
loadUserFun
will be called when the request has been validated, and user data is associated with the authorization code.
open suspend override fun authorize(input: String): KmmResult<AuthenticationResponseResult.Redirect>(source)
open suspend override fun authorize(input: AuthenticationRequestParameters): KmmResult<AuthenticationResponseResult.Redirect>(source)
Deprecated
Use `authorize` with `loadUserFun` instead