Start a sajn Login session
Create a hosted login session and get a URL to send the user to.
Use this when you don’t want to run an OIDC client — typically a native app that opens loginUrl in an in-app browser.
Flow:
POSThere to getloginUrl- Open it; the user authenticates with BankID on sajn’s hosted page
- We redirect to your
redirectUriwith?sessionId=…(and?state=…if you sent one) GET /api/v1/login/sessions/{id}from your server to read the result
The redirect is only a handle. Never trust it as proof of authentication — anyone can craft that URL. The server-side GET is the authoritative read, because it is authenticated as your organization.
redirectUri must be registered on the client. Custom schemes (myapp://auth) are supported so the in-app browser can dismiss straight back into your app.
Authorizations
Headers
ID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.
Body
Body
Response
200

