refactor(identity): rename authentik_sub to user_sub and authentik_user_id to idp_user_id

This commit is contained in:
Chris
2026-03-31 22:32:48 +08:00
parent 316d17027b
commit fe6453f6f8
35 changed files with 265 additions and 221 deletions

View File

@@ -111,7 +111,7 @@ Response:
"items": [
{
"id": "uuid",
"authentik_sub": "authentik-uid",
"user_sub": "authentik-uid",
"username": "chris",
"email": "chris@ose.tw",
"display_name": "Chris",
@@ -128,7 +128,7 @@ Response:
Request:
```json
{
"sub": "authentik-uid",
"user_sub": "authentik-uid",
"username": "chris",
"email": "chris@ose.tw",
"display_name": "Chris",
@@ -140,8 +140,8 @@ Response:
```json
{
"id": "uuid",
"sub": "authentik-uid",
"authentik_user_id": 123,
"user_sub": "authentik-uid",
"idp_user_id": 123,
"username": "chris",
"email": "chris@ose.tw",
"display_name": "Chris",
@@ -149,11 +149,11 @@ Response:
}
```
### GET `/internal/permissions/{authentik_sub}/snapshot`
### GET `/internal/permissions/{user_sub}/snapshot`
Response:
```json
{
"authentik_sub": "authentik-uid",
"user_sub": "authentik-uid",
"permissions": [
{
"scope_type": "site",
@@ -170,7 +170,7 @@ Response:
Request:
```json
{
"sub": "authentik-uid",
"user_sub": "authentik-uid",
"email": "user@example.com",
"username": "user1",
"display_name": "User One",
@@ -181,7 +181,7 @@ Request:
Response:
```json
{
"authentik_user_id": 123,
"idp_user_id": 123,
"action": "created"
}
```