skr-app-auth

skr project is a Spring Boot/Cloud project skeleton that define abstraction of JWT based security configuration.

License

License

GroupId

GroupId

org.laxture
ArtifactId

ArtifactId

skr-app-auth
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

skr-app-auth
skr project is a Spring Boot/Cloud project skeleton that define abstraction of JWT based security configuration.
Project URL

Project URL

https://github.com/hank-cp/skr
Project Organization

Project Organization

org.laxture
Source Code Management

Source Code Management

https://github.com/hank-cp/skr

Download skr-app-auth

How to add to project

<!-- https://jarcasting.com/artifacts/org.laxture/skr-app-auth/ -->
<dependency>
    <groupId>org.laxture</groupId>
    <artifactId>skr-app-auth</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.laxture/skr-app-auth/
implementation 'org.laxture:skr-app-auth:0.1.0'
// https://jarcasting.com/artifacts/org.laxture/skr-app-auth/
implementation ("org.laxture:skr-app-auth:0.1.0")
'org.laxture:skr-app-auth:jar:0.1.0'
<dependency org="org.laxture" name="skr-app-auth" rev="0.1.0">
  <artifact name="skr-app-auth" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.laxture', module='skr-app-auth', version='0.1.0')
)
libraryDependencies += "org.laxture" % "skr-app-auth" % "0.1.0"
[org.laxture/skr-app-auth "0.1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.8
org.laxture : skr-common jar 0.1.0
org.springframework.boot : spring-boot-starter-security jar

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.1.0