Skip to content

Commit 0c428c8

Browse files
committed
AUTH-6181 Add Access OIDC SaaS Application access token lifetime
1 parent ffaf12a commit 0c428c8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.changelog/2455.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
access_application: Add support for SaaS OIDC Access Token Lifetime
3+
```

access_application.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ type SaasApplication struct {
246246
AllowPKCEWithoutClientSecret *bool `json:"allow_pkce_without_client_secret,omitempty"`
247247
RefreshTokenOptions *RefreshTokenOptions `json:"refresh_token_options,omitempty"`
248248
HybridAndImplicitOptions *AccessApplicationHybridAndImplicitOptions `json:"hybrid_and_implicit_options,omitempty"`
249+
AccessTokenLifetime string `json:"access_token_lifetime,omitempty"`
249250
}
250251

251252
type AccessAppLauncherCustomization struct {

access_application_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,8 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
11301130
"hybrid_and_implicit_options": {
11311131
"return_id_token_from_authorization_endpoint": true,
11321132
"return_access_token_from_authorization_endpoint": true
1133-
}
1133+
},
1134+
"access_token_lifetime": "1m"
11341135
}
11351136
}
11361137
}
@@ -1177,6 +1178,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
11771178
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
11781179
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
11791180
},
1181+
AccessTokenLifetime: "1m",
11801182
},
11811183
CreatedAt: &createdAt,
11821184
UpdatedAt: &updatedAt,
@@ -1207,6 +1209,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
12071209
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
12081210
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
12091211
},
1212+
AccessTokenLifetime: "1m",
12101213
},
12111214
SessionDuration: "24h",
12121215
})
@@ -1238,6 +1241,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
12381241
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
12391242
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
12401243
},
1244+
AccessTokenLifetime: "1m",
12411245
},
12421246
SessionDuration: "24h",
12431247
})

0 commit comments

Comments
 (0)