Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TuningYourCode committed Jun 11, 2024
1 parent 6bf6ad6 commit 9d33bc8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions lib/puppet/type/keycloak_realm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,28 +412,28 @@ def insync?(is)

newproperty(:web_authn_policy_attestation_conveyance_preference) do
desc 'webAuthnPolicyAttestationConveyancePreference'
newvalues('NONE', 'DIRECT', 'INDIRECT', 'not specified')
newvalues('none', 'direct', 'indirect', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_authenticator_attachment) do
desc 'webAuthnPolicyAuthenticatorAttachment'
newvalues('PLATFORM', 'CROSS_PLATFORM', 'not specified')
newvalues('plattform', 'cross-plattform', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_require_resident_key) do
desc 'webAuthnPolicyRequireResidentKey'
newvalues(:true, :false, 'not specified')
newvalues('No', 'Yes', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_user_verification_requirement) do
desc 'webAuthnPolicyUserVerificationRequirement'
newvalues('REQUIRED', 'PREFERRED', 'DISCOURAGED', 'not specified')
newvalues('required', 'preferred', 'discouraged', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end
Expand Down Expand Up @@ -478,28 +478,28 @@ def insync?(is)

newproperty(:web_authn_policy_passwordless_attestation_conveyance_preference) do
desc 'webAuthnPolicyPasswordlessAttestationConveyancePreference'
newvalues('NONE', 'DIRECT', 'INDIRECT', 'not specified')
newvalues('none', 'direct', 'indirect', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_passwordless_authenticator_attachment) do
desc 'webAuthnPolicyPasswordlessAuthenticatorAttachment'
newvalues('PLATFORM', 'CROSS_PLATFORM', 'not specified')
newvalues('plattform', 'cross-plattform', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_passwordless_require_resident_key) do
desc 'webAuthnPolicyPasswordlessRequireResidentKey'
newvalues(:true, :false, 'not specified')
newvalues('No', 'Yes', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end

newproperty(:web_authn_policy_passwordless_user_verification_requirement) do
desc 'webAuthnPolicyPasswordlessUserVerificationRequirement'
newvalues('REQUIRED', 'PREFERRED', 'DISCOURAGED', 'not specified')
newvalues('required', 'preferred', 'discouraged', 'not specified')
defaultto 'not specified'
munge { |v| v.to_s }
end
Expand Down
28 changes: 14 additions & 14 deletions spec/acceptance/2_realm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,21 @@ class { 'keycloak': }
web_authn_policy_rp_entity_name => 'Keycloak',
web_authn_policy_signature_algorithms => ['ES256', 'ES384', 'ES512', 'RS256', 'RS384', 'RS512'],
web_authn_policy_rp_id => 'https://example.com',
web_authn_policy_attestation_conveyance_preference => 'DIRECT',
web_authn_policy_authenticator_attachment => 'CROSS_PLATFORM',
web_authn_policy_require_resident_key => true,
web_authn_policy_user_verification_requirement => 'REQUIRED',
web_authn_policy_attestation_conveyance_preference => 'direct',
web_authn_policy_authenticator_attachment => 'cross-platform',
web_authn_policy_require_resident_key => 'Yes',
web_authn_policy_user_verification_requirement => 'required',
web_authn_policy_create_timeout => 600,
web_authn_policy_avoid_same_authenticator_register => true,
web_authn_policy_acceptable_aaguids => ['d1d1d1d1-d1d1-d1d1-d1d1-d1d1d1d1d1d1'],
web_authn_policy_extra_origins => ['https://example.com'],
web_authn_policy_passwordless_rp_entity_name => 'Keycloak',
web_authn_policy_passwordless_rp_id => 'https://example.com',
web_authn_policy_passwordless_signature_algorithms => ['ES256', 'ES384', 'ES512', 'RS256', 'RS384', 'RS512'],
web_authn_policy_passwordless_attestation_conveyance_preference => 'DIRECT',
web_authn_policy_passwordless_authenticator_attachment => 'CROSS_PLATFORM',
web_authn_policy_passwordless_require_resident_key => true,
web_authn_policy_passwordless_user_verification_requirement => 'REQUIRED',
web_authn_policy_passwordless_attestation_conveyance_preference => 'direct',
web_authn_policy_passwordless_authenticator_attachment => 'cross-platform',
web_authn_policy_passwordless_require_resident_key => 'Yes',
web_authn_policy_passwordless_user_verification_requirement => 'required',
web_authn_policy_passwordless_create_timeout => 600,
web_authn_policy_passwordless_avoid_same_authenticator_register => true,
web_authn_policy_passwordless_acceptable_aaguids => ['ffffffff-ffff-ffff-ffff-ffffffffffff'],
Expand Down Expand Up @@ -304,21 +304,21 @@ class { 'keycloak': }
expect(data['webAuthnPolicyRpEntityName']).to eq('Keycloak')
expect(data['webAuthnPolicySignatureAlgorithms']).to eq(['ES256', 'ES384', 'ES512', 'RS256', 'RS384', 'RS512'])
expect(data['webAuthnPolicyRpId']).to eq('https://example.com')
expect(data['webAuthnPolicyAttestationConveyancePreference']).to eq('DIRECT')
expect(data['webAuthnPolicyAuthenticatorAttachment']).to eq('CROSS_PLATFORM')
expect(data['webAuthnPolicyAttestationConveyancePreference']).to eq('direct')
expect(data['webAuthnPolicyAuthenticatorAttachment']).to eq('cross-platform')
expect(data['webAuthnPolicyRequireResidentKey']).to eq(true)
expect(data['webAuthnPolicyUserVerificationRequirement']).to eq('REQUIRED')
expect(data['webAuthnPolicyUserVerificationRequirement']).to eq('required')
expect(data['webAuthnPolicyCreateTimeout']).to eq(600)
expect(data['webAuthnPolicyAvoidSameAuthenticatorRegister']).to eq(true)
expect(data['webAuthnPolicyAcceptableAaguids']).to eq(['d1d1d1d1-d1d1-d1d1-d1d1-d1d1d1d1d1d1'])
expect(data['webAuthnPolicyExtraOrigins']).to eq(['https://example.com'])
expect(data['webAuthnPolicyPasswordlessRpEntityName']).to eq('Keycloak')
expect(data['webAuthnPolicyPasswordlessSignatureAlgorithms']).to eq(['ES256', 'ES384', 'ES512', 'RS256', 'RS384', 'RS512'])
expect(data['webAuthnPolicyPasswordlessRpId']).to eq('https://example.com')
expect(data['webAuthnPolicyPasswordlessAttestationConveyancePreference']).to eq('DIRECT')
expect(data['webAuthnPolicyPasswordlessAuthenticatorAttachment']).to eq('CROSS_PLATFORM')
expect(data['webAuthnPolicyPasswordlessAttestationConveyancePreference']).to eq('direct')
expect(data['webAuthnPolicyPasswordlessAuthenticatorAttachment']).to eq('cross-platform')
expect(data['webAuthnPolicyPasswordlessRequireResidentKey']).to eq(true)
expect(data['webAuthnPolicyPasswordlessUserVerificationRequirement']).to eq('REQUIRED')
expect(data['webAuthnPolicyPasswordlessUserVerificationRequirement']).to eq('required')
expect(data['webAuthnPolicyPasswordlessCreateTimeout']).to eq(600)
expect(data['webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister']).to eq(true)
expect(data['webAuthnPolicyPasswordlessAcceptableAaguids']).to eq(['ffffffff-ffff-ffff-ffff-ffffffffffff'])
Expand Down

0 comments on commit 9d33bc8

Please sign in to comment.