PrepareOAuthRedirect
POST/sessions/prepareOAuthRedirect
For brokers with isOAuth, sessions can not be created using AddSession. This is how a session
can be added for an OAuth-based login process:
- use
prepareOAuthRedirectto obtain a URL to redirect to. You can provide areturnToURL which will be redirected to later. Note that a list of allowed URLs has to be configured for the client. - redirect the user's browser to the
redirectToURL - after the user has logged in at the broker's interface, a redirect to
returnTowith the URL query parametersverifysession=1,codeandticketIdwill happen - the
returnTopage must callconfirmOAuthwith the giventicketIdandcodeto finally add the session to the user's account
Request
Responses
- 200
- 400
- 401
- 422
- 429
- 503
Ok
Bad Request
Not logged in
Validation error
Rate-limit exceeded
Maintenance active