API Reference
API Reference
OAuth 2.1 and OpenID Connect endpoints for Nukta SSO.
API Reference
All Nukta SSO endpoints are served from https://sso.nukta.app.
GET /oauth/authorize
Starts the sign-in flow. Redirect the user's browser here.
| Parameter | Required | Description |
|---|---|---|
client_id | yes | Your application's client identifier. |
redirect_uri | yes | Where Nukta returns the user. |
response_type | yes | Use code. |
scope | yes | Space-separated, e.g. openid profile. |
POST /oauth/token
Exchanges an authorization code for tokens.
POST /oauth/token HTTP/1.1
Host: sso.nukta.app
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=...&client_id=...&client_secret=...Returns an access_token, an id_token, and a refresh_token.
GET /userinfo
Returns the profile of the authenticated user. Send the access token as a
Bearer token in the Authorization header.
{
"sub": "usr_12345",
"email": "you@example.com",
"name": "Nukta User"
}