Introduction

What It Is

Spring Authorization Server (SAS) is the official Spring project for building your own OAuth 2.1 / OpenID Connect provider — the same job Keycloak, Auth0 and Okta do. It is a set of Spring Security filters, so you configure it with beans like the rest of your app.

OptionChoose it whenWatch out
Keycloak (self-hosted)You want a full product with admin UI, user federation (LDAP), social loginAnother system to run, upgrade and back up
Auth0 / Okta / CognitoYou want zero operations and pay per userCost grows with users; vendor lock-in
Spring Authorization ServerYou need full control in Java: custom login (OTP), custom claims, your own user tablesYou build user management screens yourself

Endpoints You Get

EndpointPurpose
/oauth2/authorizeStart the authorization-code flow (login + consent)
/oauth2/tokenExchange code / refresh token / client credentials for tokens
/oauth2/jwksPublic keys that resource servers use to verify tokens
/.well-known/openid-configurationOIDC discovery document
/oauth2/introspect, /oauth2/revokeToken introspection (RFC 7662) and revocation (RFC 7009)
/userinfo, /connect/logoutOIDC user info and RP-initiated logout