From 789b313dd439b1ab066b374f74c0b74eab0f8b03 Mon Sep 17 00:00:00 2001 From: gyaneshgouraw-okta Date: Tue, 30 Apr 2024 19:46:22 +0530 Subject: [PATCH 1/2] Added new values of token_dialect in management api generated section --- src/management/__generated/models/index.ts | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index 520cc95dc..9863d72f9 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -10406,7 +10406,7 @@ export interface ResourceServer { */ enforce_policies: boolean; /** - * Dialect of access tokens that should be issued. Can be `access_token` or `access_token_authz` (includes permissions). + * Dialect of access tokens that should be issued. `access_token` is a JWT containing standard Auth0 claims; `rfc9068_profile` is a JWT conforming to the IETF JWT Access Token Profile. `access_token_authz` and `rfc9068_profile_authz` additionally include RBAC permissions claims. * */ token_dialect: ResourceServerTokenDialectEnum; @@ -10424,8 +10424,10 @@ export type ResourceServerSigningAlgEnum = (typeof ResourceServerSigningAlgEnum)[keyof typeof ResourceServerSigningAlgEnum]; export const ResourceServerTokenDialectEnum = { - token: 'access_token', - token_authz: 'access_token_authz', + access_token: 'access_token', + access_token_authz: 'access_token_authz', + rfc9068_profile: 'rfc9068_profile', + rfc9068_profile_authz: 'rfc9068_profile_authz', } as const; export type ResourceServerTokenDialectEnum = (typeof ResourceServerTokenDialectEnum)[keyof typeof ResourceServerTokenDialectEnum]; @@ -10470,7 +10472,7 @@ export interface ResourceServerCreate { */ token_lifetime?: number; /** - * Dialect of issued access token. Can be `access_token` or `access_token_authz` (includes permissions). Values can be `access_token` or `access_token_authz` (includes permissions). + * Dialect of access tokens that should be issued. `access_token` is a JWT containing standard Auth0 claims; `rfc9068_profile` is a JWT conforming to the IETF JWT Access Token Profile. `access_token_authz` and `rfc9068_profile_authz` additionally include RBAC permissions claims. * */ token_dialect?: ResourceServerCreateTokenDialectEnum; @@ -10498,8 +10500,10 @@ export type ResourceServerCreateSigningAlgEnum = (typeof ResourceServerCreateSigningAlgEnum)[keyof typeof ResourceServerCreateSigningAlgEnum]; export const ResourceServerCreateTokenDialectEnum = { - token: 'access_token', - token_authz: 'access_token_authz', + access_token: 'access_token', + access_token_authz: 'access_token_authz', + rfc9068_profile: 'rfc9068_profile', + rfc9068_profile_authz: 'rfc9068_profile_authz', } as const; export type ResourceServerCreateTokenDialectEnum = (typeof ResourceServerCreateTokenDialectEnum)[keyof typeof ResourceServerCreateTokenDialectEnum]; @@ -10544,7 +10548,7 @@ export interface ResourceServerUpdate { */ token_lifetime?: number; /** - * Dialect of issued access token. Can be `access_token` or `access_token_authz` (includes permissions). + * Dialect of access tokens that should be issued. `access_token` is a JWT containing standard Auth0 claims; `rfc9068_profile` is a JWT conforming to the IETF JWT Access Token Profile. `access_token_authz` and `rfc9068_profile_authz` additionally include RBAC permissions claims. * */ token_dialect?: ResourceServerUpdateTokenDialectEnum; @@ -10567,8 +10571,10 @@ export type ResourceServerUpdateSigningAlgEnum = (typeof ResourceServerUpdateSigningAlgEnum)[keyof typeof ResourceServerUpdateSigningAlgEnum]; export const ResourceServerUpdateTokenDialectEnum = { - token: 'access_token', - token_authz: 'access_token_authz', + access_token: 'access_token', + access_token_authz: 'access_token_authz', + rfc9068_profile: 'rfc9068_profile', + rfc9068_profile_authz: 'rfc9068_profile_authz', } as const; export type ResourceServerUpdateTokenDialectEnum = (typeof ResourceServerUpdateTokenDialectEnum)[keyof typeof ResourceServerUpdateTokenDialectEnum]; From 7765470ce971be50ecac7c162f2f8ab677fac019 Mon Sep 17 00:00:00 2001 From: gyaneshgouraw-okta Date: Mon, 6 May 2024 19:06:31 +0530 Subject: [PATCH 2/2] Updated token_dialect types keys --- src/management/__generated/models/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index 9863d72f9..62c7bd43d 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -10424,8 +10424,8 @@ export type ResourceServerSigningAlgEnum = (typeof ResourceServerSigningAlgEnum)[keyof typeof ResourceServerSigningAlgEnum]; export const ResourceServerTokenDialectEnum = { - access_token: 'access_token', - access_token_authz: 'access_token_authz', + token: 'access_token', + token_authz: 'access_token_authz', rfc9068_profile: 'rfc9068_profile', rfc9068_profile_authz: 'rfc9068_profile_authz', } as const; @@ -10500,8 +10500,8 @@ export type ResourceServerCreateSigningAlgEnum = (typeof ResourceServerCreateSigningAlgEnum)[keyof typeof ResourceServerCreateSigningAlgEnum]; export const ResourceServerCreateTokenDialectEnum = { - access_token: 'access_token', - access_token_authz: 'access_token_authz', + token: 'access_token', + token_authz: 'access_token_authz', rfc9068_profile: 'rfc9068_profile', rfc9068_profile_authz: 'rfc9068_profile_authz', } as const; @@ -10571,8 +10571,8 @@ export type ResourceServerUpdateSigningAlgEnum = (typeof ResourceServerUpdateSigningAlgEnum)[keyof typeof ResourceServerUpdateSigningAlgEnum]; export const ResourceServerUpdateTokenDialectEnum = { - access_token: 'access_token', - access_token_authz: 'access_token_authz', + token: 'access_token', + token_authz: 'access_token_authz', rfc9068_profile: 'rfc9068_profile', rfc9068_profile_authz: 'rfc9068_profile_authz', } as const;