Skip to content

Latest commit

 

History

History
77 lines (65 loc) · 2.34 KB

README.md

File metadata and controls

77 lines (65 loc) · 2.34 KB

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