Skip to content

Commit

Permalink
docs(jans-cedarling): update schema for tokens (#10738)
Browse files Browse the repository at this point in the history
Signed-off-by: SafinWasi <[email protected]>
Co-authored-by: Oleh <[email protected]>
  • Loading branch information
SafinWasi and olehbozhok authored Jan 31, 2025
1 parent c9e4558 commit b8240bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
27 changes: 15 additions & 12 deletions jans-cedarling/schema/cedarling_core.cedarschema
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,23 @@ namespace Jans {
};

// ****** Entities ******
entity Role;
entity User in [Role] = {
email?: email_address,
phone_number?: String,
role: Set<String>,
sub: String,
"username"?: String,
id_token?: id_token,
userinfo_token?: Userinfo_token,
};
entity Workload = {
client_id: String,
iss: TrustedIssuer,
name?: String,
rp_id?: String,
spiffe_id?: String
spiffe_id?: String,
access_token?: Access_token,
};
entity Access_token = {
aud: String,
Expand All @@ -37,17 +48,6 @@ namespace Jans {
nbf?: Long,
scope?: Set<String>
};
entity TrustedIssuer = {
issuer_entity_id: Url
};
entity Role;
entity User in [Role] = {
email?: email_address,
phone_number?: String,
role: Set<String>,
sub: String,
"username"?: String
};
entity id_token = {
acr?: String,
amr?: Set<String>,
Expand Down Expand Up @@ -83,6 +83,9 @@ namespace Jans {
},
"url": Url
};
entity TrustedIssuer = {
issuer_entity_id: Url
};
entity Application = {
app_id: String,
name: String,
Expand Down
15 changes: 15 additions & 0 deletions jans-cedarling/schema/cedarling_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
"name": "email_address",
"required": false
},
"id_token": {
"type": "EntityOrCommon",
"name": "id_token",
"required": false
},
"phone_number": {
"type": "EntityOrCommon",
"name": "String",
Expand All @@ -208,6 +213,11 @@
"type": "EntityOrCommon",
"name": "String"
},
"userinfo_token": {
"type": "EntityOrCommon",
"name": "Userinfo_token",
"required": false
},
"username": {
"type": "EntityOrCommon",
"name": "String",
Expand Down Expand Up @@ -282,6 +292,11 @@
"shape": {
"type": "Record",
"attributes": {
"access_token": {
"type": "EntityOrCommon",
"name": "Access_token",
"required": false
},
"client_id": {
"type": "EntityOrCommon",
"name": "String"
Expand Down

0 comments on commit b8240bd

Please sign in to comment.