SOKRIYO · One Profile
Build with SOKRIYO OIDC
Integrate standards-compliant OpenID Connect, OAuth 2.1, Passkeys, SAML 2.0, and SCIM 2.0 into any web, mobile, or backend application. Use the left sidebar to switch languages or toggle .env variables live.
OIDC Discovery Endpoint
GET https://sokriyo.com/.well-known/openid-configuration
API Endpoints & Scopes
Supported Scopes
4-Step Application Onboarding
1. Register Business
Submit your organization details and trade license for verification.
2. Create OIDC App
Receive Sandbox Client ID & Secret immediately to begin testing.
3. Verify 5 Stages
Run Authorize, Token, UserInfo, Refresh, and Logout in Sandbox.
4. Unlock Production
Enable Production credentials once Sandbox & Admin review pass.
Hosted Identity Experience
The SOKRIYO Login Panel (/access)
Rather than building fragile login forms, password resets, or WebAuthn ceremonies inside every client app, SOKRIYO routes users through the centralized One Profile Login Panel (/access) and returns them seamlessly to your redirect_uri or next target.
1. Smart Identifier & Dial-Code Detection
Users start with one unified input for email or phone. Typing a + prefix (e.g. +880...) automatically selects the matching country dial code and routes existing users to sign-in or new users to One Profile registration.
2. Passkeys (FIDO2), TOTP MFA & Recovery
Returning users can authenticate via password, hardware/biometric Passkey, or 2FA TOTP authenticator codes. Password recovery and one-click Magic Links surface contextually when needed.
3. Per-App Visual Branding & Templates
Each client app can customize its login appearance from the Developer Portal: primary brand_color, light/dark square & wide logos, preset layouts (default, modern, minimal, corporate), or custom HTML templates.
4. Multi-Account & Compliance Enforcement
Supports switching between saved accounts on the same browser, Home Realm Discovery for enterprise SSO, and automatic blocking/document-resubmission prompts if a profile or business is under compliance hold.
Consent Screen & Granular Scope Governance
Before issuing an authorization code at /oauth/authorize, SOKRIYO evaluates the application's governance status and per-scope policies:
Scope Policies
Each scope (email, phone, govt_id, etc.) can be approved, under_review, blocked, or declined.
Claim Masking
Sensitive fields (email, phone_number, birthdate) can be set to visible, masked, or hidden in tokens & UserInfo.
Observation Mode
Logs every token & UserInfo request for apps under review and auto-escalates when hourly observation thresholds are exceeded.
5-Stage OAuth 2.0 / OIDC Request Flow
Showing examples using .
1. Authorization Request
GET /oauth/authorize
Redirect the user to the login & consent panel with PKCE S256 challenge and offline_access for refresh tokens.
2. Token Exchange
POST /oauth/token
Exchange the single-use authorization code and code_verifier for access_token, refresh_token, and RS256 id_token.
3. Get User Info
GET /oauth/userinfo
Retrieve the authenticated user claims using the Bearer access_token.
4. Refresh Token Rotation
POST /oauth/token
Obtain a fresh access_token. Each refresh_token is single-use and rotates immediately upon use.
5. End Session / Logout
GET /oauth/logout
Terminate the SSO session and redirect back to your post_logout_redirect_uri.
Advanced OAuth 2.1 Security Profiles
DPoP Sender-Constrained Tokens (RFC 9449)
Include a DPoP proof JWT header on /oauth/token and /oauth/userinfo to cryptographically bind tokens to your client's ephemeral keypair (cnf.jkt).
mTLS & private_key_jwt (RFC 8705 / 7523)
Enforce mutual-TLS client certificates (cnf.x5t#S256) or asymmetric client_assertion JWTs signed with your registered public key.
Device Authorization Grant (RFC 8628)
Authenticate smart TVs, CLIs, and headless devices via POST /oauth/device_authorization and user verification codes.
Token Exchange & Introspection
Delegate microservice calls via urn:ietf:params:oauth:grant-type:token-exchange and verify active tokens at POST /oauth/introspect.
Enterprise Federation (SAML 2.0, SCIM 2.0) & Webhooks
Multi-Realm & SAML 2.0
Realm-scoped endpoints (/realms/{slug}/...), SAML 2.0 metadata & SSO, plus Home Realm Discovery (/api/auth/hrd).
SCIM 2.0 Provisioning
Automate user lifecycle sync (/scim/v2/Users) with enterprise identity providers using bearer SCIM tokens.
Signed Webhooks
Receive HMAC-SHA256 signed webhook deliveries for user.login and oauth.revoke events.