Loading...
Loading...
Sa-Token OAuth2.0 server-side skill. Covers four grant modes: Authorization Code, Implicit, Password, and Client Credentials. Includes complete OAuth2-Server setup, the SaOAuth2DataLoader data loader, custom and tiered Scope permissions, the OIDC protocol, OpenId/UnionId, custom grant_type, custom login and authorization pages, annotation-based Access-Token validation, login session interoperability, Scope level control, and custom API routes. Use this skill when building an OAuth2.0 authentication server, developing an open platform, or implementing third-party application authorization. For basic login authentication, use the sa-token skill first.
npx skill4agent add full-stack-skills/java-skills sa-token-oauth2sa-token-doc/oauth2/sa-token| Mode | Use Case | Description |
|---|---|---|
| Authorization Code | Web applications with a backend | Most commonly used and safest |
| Implicit | Pure front-end applications | No longer recommended |
| Password | Trusted clients | For first-party apps |
| Client Credentials | Service-to-service calls | No user authorization required |
sa-token-oauth2SaOAuth2DataLoaderImpl| Topic | File | Source |
|---|---|---|
| Server setup + DataLoader | references/oauth2-server.md | oauth2-server, oauth2-apidoc |
| DataLoader + domain validation + customization | references/oauth2-data-loader.md | data-loader, check-domain |
| Custom Scope permissions and levels | references/oauth2-scope.md | custom-scope, scope-level |
SaOAuth2DataLoader.getScope()SaScopeObjectis-check-domain: trueallow-urlisAutoModerefresh-token-timeout/oauth2/refresh/oauth2/tokenaccess-token-timeoutallow-domains