Onboarding checklist
Step-by-step bring-up for a new app on Tanvrit auth. Allow ~30 minutes the first time, ~5 minutes thereafter.
-
Pick your auth mode
Read the three modes. Most teams start with Mode A (no setup) and graduate to Mode B or C when they care about consent-screen branding or third-party SSO.
-
Register your app
Open the developer portal and create a row in
PlatformProfile:appId— reverse-DNS string (e.g.com.example.demo). Used as theX-App-IDheader on every request and as the OIDCclient_idfor Mode C.label— human-readable display name.oauthMode—"shared"(Mode A) or"byo"(Mode B). Mode C is configured separately as an OIDC client.branding— logo, primary color, terms / privacy URLs (used by hosted login and consent screens).
-
(Mode B only) Register OAuth apps with each provider
Go to Google Cloud Console / Apple Developer / Meta / GitHub and register an OAuth app. For each provider:
- Set the redirect URI to a URL on your domain.
- Copy the
client_idandclient_secretback to the developer portal under Provider credentials.
Tanvrit encrypts the secrets at rest with AES-256-GCM; they're never echoed back via any API.
-
(Mode C only) Register your relying party
In the developer portal under OIDC clients, create a row with:
client_id— your relying party identifier.client_secret— only for confidential clients.redirect_uris— every URL you'll redirect users back to (exact-match allowlist enforced).
-
Wire the SDK in your app
Add the Tanvrit auth SDK to your Gradle build:
// Gradle implementation("com.tanvrit:auth:2.0.4") implementation("com.tanvrit:auth-ui:2.0.4") // optional, for TanvritAuthScreenInitialize the SDK at app start with your
appId:TanvritSDK.init { appId = "com.example.demo" apiKey = BuildConfig.TANVRIT_API_KEY // from the developer portal brandSeedColor = 0xFF6F4D2AUL // your brand color } -
Implement the auth flow
- Mode A / B: drop in
TanvritAuthScreenfromauth-ui; it handles all 10 providers. - Mode C: use the SignInWithTanvrit helper or any standard OIDC library.
- Mode A / B: drop in
-
Verify end-to-end
- Sign in. Confirm the consent screen brand matches what you expect for your mode.
- Confirm the resulting JWT contains
appIdmatching your registeredappId. - Hit a protected API (e.g.
GET /api/v1/auth/me) and confirm the response is for the right user.
-
Monitor
Every auth event lands in
auth_audit_log(90-day TTL). Surface a "recent auth events" view in your admin dashboard or check from the developer portal.
Need help? Email developers@tanvrit.com or open an issue at github.com/Tanvrit/server.