mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-23 22:05:38 +00:00
Task 10b: OAuth Claims + Access Policy - OAuthClaims record, OAuthClaimsExtractor SPI, GitHubClaimsExtractor - AccessPolicy SPI with Open/EmailDomain/ProviderAllowlist/SubjectWhitelist - AccessPolicyFactory with config-driven strategy selection - 8 unit tests for access policies Task 11: Identity binding + OAuth2 user service - PlatformPrincipal session-serializable record - IdentityBindingService: bind-or-create on OAuth login - CustomOAuth2UserService: policy evaluation + identity binding - OAuth2LoginSuccessHandler: store principal in session Task 12: API Token + RBAC - ApiTokenService: SHA-256 hashed token create/validate/revoke - ApiTokenAuthenticationFilter: Bearer token authentication - RbacService: role/permission queries with SUPER_ADMIN bypass
40 lines
1.5 KiB
XML
40 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>com.iflytek.skillhub</groupId>
|
|
<artifactId>skillhub-parent</artifactId>
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>skillhub-auth</artifactId>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.iflytek.skillhub</groupId>
|
|
<artifactId>skillhub-domain</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-oauth2-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|