-
Notifications
You must be signed in to change notification settings - Fork 19
Using Cedarling in custom script
Michael Schwartz edited this page Aug 22, 2025
·
5 revisions
sequenceDiagram
title License Verification
autonumber
actor User
Gluu Flex Admin UI->>Jans Auth Server: /authorize
Jans Auth Server->>Gluu Flex Admin UI:code
Gluu Flex Admin UI->>Jans Auth Server: /token
Note right of Gluu Flex Admin UI: code as parameter
Jans Auth Server->>Gluu Flex Admin UI: access_token
Note right of Gluu Flex Admin UI: access_token as parameter
Gluu Flex Admin UI->>Jans Auth Server: /userInfo
Jans Auth Server->>Gluu Flex Admin UI: user-info (UJWT)
Gluu Flex Admin UI->>Gluu Flex Admin UI Backend: /api-token (params: access_token + id_token + userinfo_token JWTS)
Note right of Gluu Flex Admin UI: calling endpoint to get token with the scopes to access config-api
Gluu Flex Admin UI Backend->>Jans Auth Server: /token
Jans Auth Server->> update_token script: access_token + id_token + userinfo_token
update_token script->>cedarling: access_token + id_token + userinfo_token
cedarling->>update_token script: authz decision
alt decision: true
update_token script->>Jans Auth Server: add scopes to the token
else decision: false
update_token script->>Jans Auth Server: no scopes added to the token
end
Jans Auth Server->>Gluu Flex Admin UI Backend: token
Gluu Flex Admin UI Backend->>Gluu Flex Admin UI: token
sequenceDiagram
title License Verification
autonumber
actor User
Gluu Flex Admin UI->>Jans Auth Server: /authorize
Jans Auth Server->>Gluu Flex Admin UI:code
Gluu Flex Admin UI->>Jans Auth Server: /token
update_token script->>cedarling: authz request
cedarling->>update_token script: authz decision
alt decision: true
update_token script->>Jans Auth Server: add scopes to the token
else decision: false
update_token script->>Jans Auth Server: no scopes added to the token
end
Jans Auth Server->>Gluu Flex Admin UI: token
Gluu Flex Admin UI->>Gluu Flex Admin UI Backend: token