Skip to content

Add tenant OIDC logout configuration #517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions management/management.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions management/management.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions management/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ type Tenant struct {
// Sessions related settings for the tenant.
Sessions *TenantSessions `json:"sessions,omitempty"`

// OIDC logout related settings for the tenant.
OIDCLogout *TenantOIDCLogout `json:"oidc_logout,omitempty"`

// If `true`, allows accepting an organization name or organization ID on auth endpoints.
AllowOrgNameInAuthAPI *bool `json:"allow_organization_name_in_authentication_api,omitempty"`

Expand Down Expand Up @@ -404,6 +407,12 @@ type TenantSessions struct {
OIDCLogoutPromptEnabled *bool `json:"oidc_logout_prompt_enabled,omitempty"`
}

// TenantOIDCLogout manages OIDC logout related settings for the tenant.
type TenantOIDCLogout struct {
// Enable the end_session_endpoint URL in the .well-known discovery configuration.
OIDCResourceProviderLogoutEndSessionEndpointDiscovery *bool `json:"rp_logout_end_session_endpoint_discovery,omitempty"`
}

// TenantManager manages Auth0 Tenant resources.
type TenantManager manager

Expand Down
3 changes: 3 additions & 0 deletions management/tenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func TestTenantManager(t *testing.T) {
Sessions: &TenantSessions{
OIDCLogoutPromptEnabled: auth0.Bool(false),
},
OIDCLogout: &TenantOIDCLogout{
OIDCResourceProviderLogoutEndSessionEndpointDiscovery: auth0.Bool(true),
},
ACRValuesSupported: &[]string{"foo", "bar"},
PushedAuthorizationRequestsSupported: auth0.Bool(true),
MTLS: &TenantMTLSConfiguration{
Expand Down
Loading
Loading