skr-app-auth-perm

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-perm
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

skr-app-auth-perm
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-perm

How to add to project

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

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