Login with Locke

Add secure authentication to your app with the first post-quantum identity provider.

Standard OAuth 2.0 + PKCE — works with any language or framework

Try It

Experience the full OAuth flow from a user's perspective

Authorization Code + PKCE + Dilithium3 post-quantum signatures

Get Started in 3 Steps

Standard OAuth 2.0 flow — works with any language or framework

1

Register your app

Create an organization and register an OAuth client to get a client_id

Register at Locke Armory arrow_forward
2

Add the login button

Redirect users to the authorization endpoint with PKCE

https://app.locke.id/oauth/consent
3

Handle the callback

Exchange the authorization code for tokens at the token endpoint

POST https://api.locke.id/oauth/token

OAuth Endpoints

Copy these URLs into your OAuth client configuration

Dev environment: Replace api.locke.id with devapi.locke.id for testing
Authorization https://app.locke.id/oauth/consent
Token https://api.locke.id/oauth/token
UserInfo https://api.locke.id/oauth/userinfo
Introspection https://api.locke.id/oauth/introspect
Revocation https://api.locke.id/oauth/revoke
JWKS https://api.locke.id/.well-known/jwks.json
Discovery https://api.locke.id/.well-known/openid-configuration
Scopes openid profile email

Integration Examples

<!-- Login with Locke Button -->
<a href="/auth/locke" class="login-with-locke">
  <img src="https://lockeidentity.com/images/login-with-locke-icon.webp"
       alt="Locke" width="24" height="24">
  Login with Locke
</a>

<!-- Required CSS -->
<style>
.login-with-locke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #0891b2;
  color: white;
  border-radius: 10px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.login-with-locke:hover { background: #0e7490; }
</style>
verified_user

Post-Quantum Signatures

Every ID token includes a pq_sig claim with a Dilithium3 signature. Verify it using the PQ public key from JWKS.

First identity provider with quantum-resistant signatures (NIST FIPS 204)

lock

Security Requirements

  • check PKCE mandatory (S256)
  • check Redirect URIs: HTTPS only in production
  • check Auth codes expire in 10 minutes
  • check State parameter for CSRF protection

Ready to integrate?

Register your organization, create an OAuth client, and add Login with Locke to your app in minutes.

Register Your Organization arrow_forward
Locke