Skip to content
Open
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
1 change: 1 addition & 0 deletions app/models/oidc_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def self.dump(obj)
implicit_flow_enabled
service_accounts_enabled
direct_access_grants_enabled
token_exchange_enabled
].freeze

BOOLEAN_ATTRIBUTES = FLOWS
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,7 @@ en:
standard_flow_enabled: Authorization Code Flow
implicit_flow_enabled: Implicit Flow
direct_access_grants_enabled: Direct Access Grant Flow
token_exchange_enabled: Token Exchange Flow

config:
advanced_cms: Advanced CMS
Expand Down
9 changes: 6 additions & 3 deletions test/models/oidc_configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def test_always_save_configuration_in_database
"service_accounts_enabled" => false,
"standard_flow_enabled" => false,
"implicit_flow_enabled" => false,
"direct_access_grants_enabled" => false
"direct_access_grants_enabled" => false,
"token_exchange_enabled" => false
}
assert_equal json, JSON.parse(config.config_before_type_cast)
end
Expand All @@ -21,7 +22,8 @@ def test_assign_attributes
"service_accounts_enabled" => true,
"standard_flow_enabled" => false,
"implicit_flow_enabled" => false,
"direct_access_grants_enabled" => false
"direct_access_grants_enabled" => false,
"token_exchange_enabled" => false
}
assert_equal json, config.attributes
end
Expand All @@ -36,7 +38,8 @@ def test_saving_config
"service_accounts_enabled" => false,
"standard_flow_enabled" => true,
"implicit_flow_enabled" => true,
"direct_access_grants_enabled" => false
"direct_access_grants_enabled" => false,
"token_exchange_enabled" => false
}

assert_equal json, JSON.parse(record.config_before_type_cast)
Expand Down