Skip to content
/ skr Public

skr project is a Spring Boot/Cloud project skeleton that define abstraction of JWT based security configuration. Project based on skr skeleton could define its own implementation

License

Notifications You must be signed in to change notification settings

hank-cp/skr

Repository files navigation

GitHub release Maven Central Github Actions GitHub GitHub last commit

Skr project is a Spring Boot/Cloud project skeleton that define abstraction of JWT based security configuration. Project based on skr skeleton could define its own implementation

Feature

  • JWT based security abstraction
  • Modular registration abstraction
    • Permission registration
    • EndPoint registration
    • Extensible registration
  • Spring Boot Starter
  • Switchable Spring Cloud platform

Authentication flows

Terminology

  • Principal
    • UserPrincipal
    • JwtPrincipal
  • Certification
  • Tokens
    • access-token:
    • refresh-token:
    • login-token:
    • robot-token:
    • train-token:
  • Realm
  • Permission
  • EndPoint

Libraries

  • skr-common: Common model and utils.
  • skr-cloud-spring: Default official Spring-Cloud implementation
    • skr-cloud-tsf: Tencent Spring-Cloud implementation

Security

  • skr-service-auth: Authentication manager service depends on this.
  • skr-app-auth: Services need authentication depend on this.
  • skr-app-auth-perm: Services need permission checking depend on this.

Registration

  • skr-service-reg: Registration center service depends on this.

How To

Auth Service

TBD

Registry Service

TBD

Switch Spring Cloud provider

TBD

Exception

Integration Test

  1. Start this service in sequence:
    1. AuthApp
    2. RegistryApp
    3. DemoA
    4. DemoB
  2. run integration-test/run_test.sh

About

skr project is a Spring Boot/Cloud project skeleton that define abstraction of JWT based security configuration. Project based on skr skeleton could define its own implementation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages