palbaseDocs

Palbase Auth API · API

GET/auth/oauth/callback/microsoft

Microsoft sign-in callback

Provider ingress for a browser sign-in started with POST /auth/oauth/transactions. Needs no Palbase key or session: the state the transaction was started with is the only authority, and each state is usable once. Microsoft returns with the result in the query string; a request body, a duplicated field, a user or an id_token field is refused. Exactly one of code and error must be present. Answers 303 to the app's return URI.

Called by .

Query

statestring · requiredThe state the sign-in transaction was started with.
codestring · optionalThe authorization code, on success.
errorstring · optionalThe provider's error code, on failure (`access_denied` when the user cancelled).
error_descriptionstring · optional
curl
curl -X GET "https://<your-ref>.palbase.studio/auth/oauth/callback/microsoft"

Responses

303Back to the app. Sent also when the provider reported an error or the code exchange failed: the outcome is revealed when the app completes the transaction.

400Validation failed or required field missing

404Resource does not exist or is not visible to the caller

409Conflict with current resource state (duplicate, race)

410The sign-in transaction expired (`auth_transaction_expired`); start again.

429Rate limit exceeded

503Downstream dependency unavailable (typically HIBP / breach service)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation SocialCallbackMicrosoft of auth's contract.