Skip to content

Commit a6cb7ae

Browse files
authored
Feat: Add Support for Native to Web SSO (#1141)
2 parents e292704 + 608e2a1 commit a6cb7ae

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

  • src/management/__generated/models

src/management/__generated/models/index.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export interface Client {
159159
*
160160
*/
161161
allowed_logout_urls: Array<string>;
162+
/**
163+
*/
164+
session_transfer?: ClientSessionTransfer | null;
162165
/**
163166
*/
164167
oidc_logout: ClientOidcLogout;
@@ -1021,6 +1024,9 @@ export interface ClientCreate {
10211024
*
10221025
*/
10231026
callbacks?: Array<string>;
1027+
/**
1028+
*/
1029+
session_transfer?: ClientSessionTransfer | null;
10241030
/**
10251031
*/
10261032
oidc_logout?: ClientCreateOidcLogout;
@@ -2466,6 +2472,57 @@ export interface ClientRefreshTokenPoliciesInner {
24662472
*/
24672473
scope: Array<string>;
24682474
}
2475+
/**
2476+
* Native to Web SSO Configuration
2477+
*/
2478+
export interface ClientSessionTransfer {
2479+
/**
2480+
* Indicates whether an app can issue a session_token through Token Exchange. If set to 'false', the app will not be able to issue a session_token.
2481+
*
2482+
*/
2483+
can_create_session_transfer_token?: boolean;
2484+
/**
2485+
* Indicates whether an app can create a session from a session_token received via indicated methods.
2486+
*
2487+
*/
2488+
allowed_authentication_methods?: Array<ClientSessionTransferAllowedAuthenticationMethodsEnum>;
2489+
/**
2490+
* Indicates whether device binding security should be enforced for the app. If set to 'ip', the app will enforce device binding by IP, meaning that consumption of session_token must be done from the same IP of the issuer. Likewise, if set to 'asn', device binding is enforced by ASN, meaning consumption of session_token must be done from the same ASN as the issuer. If set to 'null', device binding is not enforced.
2491+
*
2492+
*/
2493+
enforce_device_binding?: ClientSessionTransferEnforceDeviceBindingEnum;
2494+
/**
2495+
* Indicates whether Refresh Tokens are allowed to be issued when authenticating with a session_transfer_token.
2496+
*
2497+
*/
2498+
allow_refresh_token?: boolean;
2499+
/**
2500+
* Indicates whether Refresh Tokens created during a native-to-web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are.
2501+
*
2502+
*/
2503+
enforce_online_refresh_tokens?: boolean;
2504+
/**
2505+
* Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities.
2506+
*
2507+
*/
2508+
enforce_cascade_revocation?: boolean;
2509+
}
2510+
2511+
export const ClientSessionTransferAllowedAuthenticationMethodsEnum = {
2512+
cookie: 'cookie',
2513+
query: 'query',
2514+
} as const;
2515+
export type ClientSessionTransferAllowedAuthenticationMethodsEnum =
2516+
(typeof ClientSessionTransferAllowedAuthenticationMethodsEnum)[keyof typeof ClientSessionTransferAllowedAuthenticationMethodsEnum];
2517+
2518+
export const ClientSessionTransferEnforceDeviceBindingEnum = {
2519+
ip: 'ip',
2520+
asn: 'asn',
2521+
none: 'none',
2522+
} as const;
2523+
export type ClientSessionTransferEnforceDeviceBindingEnum =
2524+
(typeof ClientSessionTransferEnforceDeviceBindingEnum)[keyof typeof ClientSessionTransferEnforceDeviceBindingEnum];
2525+
24692526
/**
24702527
* JWT-secured Authorization Requests (JAR) settings.
24712528
*/
@@ -2529,6 +2586,9 @@ export interface ClientUpdate {
25292586
*
25302587
*/
25312588
callbacks?: Array<string>;
2589+
/**
2590+
*/
2591+
session_transfer?: ClientSessionTransfer | null;
25322592
/**
25332593
*/
25342594
oidc_logout?: ClientUpdateOidcLogout | null;

0 commit comments

Comments
 (0)