Auth providers
Auth policy
Authentication is configured through anAuthPolicy:
JWT validation
MobKit validates JWT tokens locally without calling the identity provider at request time:1
Header inspection
Parse the JWT header to extract the signing algorithm (Supported algorithms:
alg) and key ID (kid):HS256 (HMAC-SHA256) and RS256 (RSA-SHA256).2
Key selection
For RS256 tokens, select the matching key from the JWKS document:
3
Signature verification
Verify the token signature against the selected key:The validated JWT contains the claims (subject, email, issuer, expiration).
OIDC discovery
For RS256 providers, MobKit fetches the OIDC discovery document and JWKS keys:kid.
HS256 shared secrets
For HMAC-based validation (testing, internal services):Console access enforcement
Console routes are protected byenforce_console_route_access:
Enforcement rules
- If
console_policy.require_app_authisfalse, all requests are allowed - The request provider must match
auth_policy.default_provider TestProvideris always rejected (even if it matches)- The email must appear in
auth_policy.email_allowlist
Service identity
Service accounts use theServiceIdentity provider with emails prefixed by svc::
- The email must start with
svc:and have content after the prefix - The full
svc:identity must appear in the allowlist
Validation errors
See also
- Console — how auth protects console access
- Decisions — policy enforcement
- Configuration — auth policy settings
