Add "Login with Locke" to Your App

Give your users secure, passwordless authentication with the first post-quantum identity provider

Post-Quantum Ready First identity provider with Dilithium3 signatures

Try It Now

See how "Login with Locke" works for your users

OAuth 2.0 + PKCE with post-quantum signatures

Why Add "Login with Locke"?

verified_user

Post-Quantum Security

First identity provider with Dilithium3 signatures. Future-proof your auth against quantum attacks.

speed

Simple Integration

Standard OAuth 2.0 + PKCE. Works with your existing auth libraries. Add login in minutes.

group

Privacy-First Users

Reach users who want better security. Locke users trust apps that support their identity provider.

Get Started in 3 Steps

Standard OAuth 2.0 flow — works with any language or framework

1

Register your app

Get a client_id from the Locke developer portal

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

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

Ready to integrate? Jump to code examples below

code View Integration Examples

OAuth Endpoints

Copy these URLs into your OAuth client configuration

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

Integration Examples

Add the Login Button

Copy this HTML to add a styled "Login with Locke" button:

<!-- Login with Locke Button -->
<a href="/auth/locke" class="login-with-locke">
  <img src="https://locke.id/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: #0a91b3;
  color: white;
  border-radius: 8px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.login-with-locke:hover { background: #087a96; }
</style>
PQ

Post-Quantum Ready

No changes needed - the ID token automatically includes a pq_sig claim with a Dilithium3 signature. Your backend can optionally verify it for quantum-resistant authentication.

verified_user

Security Requirements

PKCE: Required (S256) Redirect URIs: HTTPS only State: Always validate Tokens: Include Dilithium3 PQ signature

Ready to Add "Login with Locke"?

Join developers building the future of secure authentication. Register your app and start integrating today.

business Register Your Organization