Skip to content

Commit

Permalink
Merge pull request #2455 from ajholland/aholland/AUTH-6181
Browse files Browse the repository at this point in the history
AUTH-6181 Add Access OIDC SaaS Application access token lifetime
  • Loading branch information
jacobbednarz authored Jun 11, 2024
2 parents ffaf12a + 0c428c8 commit 38a43a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/2455.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
access_application: Add support for SaaS OIDC Access Token Lifetime
```
1 change: 1 addition & 0 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ type SaasApplication struct {
AllowPKCEWithoutClientSecret *bool `json:"allow_pkce_without_client_secret,omitempty"`
RefreshTokenOptions *RefreshTokenOptions `json:"refresh_token_options,omitempty"`
HybridAndImplicitOptions *AccessApplicationHybridAndImplicitOptions `json:"hybrid_and_implicit_options,omitempty"`
AccessTokenLifetime string `json:"access_token_lifetime,omitempty"`
}

type AccessAppLauncherCustomization struct {
Expand Down
6 changes: 5 additions & 1 deletion access_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,8 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
"hybrid_and_implicit_options": {
"return_id_token_from_authorization_endpoint": true,
"return_access_token_from_authorization_endpoint": true
}
},
"access_token_lifetime": "1m"
}
}
}
Expand Down Expand Up @@ -1177,6 +1178,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
},
AccessTokenLifetime: "1m",
},
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
Expand Down Expand Up @@ -1207,6 +1209,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
},
AccessTokenLifetime: "1m",
},
SessionDuration: "24h",
})
Expand Down Expand Up @@ -1238,6 +1241,7 @@ func TestCreateOIDCSaasAccessApplications(t *testing.T) {
ReturnIDTokenFromAuthorizationEndpoint: BoolPtr(true),
ReturnAccessTokenFromAuthorizationEndpoint: BoolPtr(true),
},
AccessTokenLifetime: "1m",
},
SessionDuration: "24h",
})
Expand Down

0 comments on commit 38a43a3

Please sign in to comment.