Skip to content

Commit

Permalink
Merge pull request #58 from nexxome/2.0
Browse files Browse the repository at this point in the history
Added requestedAuthnContextComparison to security configuration
  • Loading branch information
a-menshchikov authored Sep 1, 2024
2 parents 8f6d83f + fd59708 commit d2feeb7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ nbgrp_onelogin_saml:
wantNameId: false
wantNameIdEncrypted: false
requestedAuthnContext: true
requestedAuthnContextComparison: 'exact'
wantXMLValidation: false
relaxDestinationValidation: false
destinationStrictlyMatches: true
Expand Down
8 changes: 8 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ public function getConfigTreeBuilder(): TreeBuilder
->thenInvalid('invalid value.')
->end()
->end()
->enumNode('requestedAuthnContextComparison')
->values([
'exact',
'minimum',
'maximum',
'better',
])
->end()
->booleanNode('wantXMLValidation')->end()
->booleanNode('relaxDestinationValidation')->end()
->booleanNode('destinationStrictlyMatches')->end()
Expand Down
2 changes: 2 additions & 0 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public static function provideValidConfigCases(): iterable
'wantNameId' => false,
'wantNameIdEncrypted' => false,
'requestedAuthnContext' => false,
'requestedAuthnContextComparison' => 'exact',
'wantXMLValidation' => false,
'relaxDestinationValidation' => false,
'destinationStrictlyMatches' => false,
Expand Down Expand Up @@ -234,6 +235,7 @@ public static function provideValidConfigCases(): iterable
'wantNameId' => false,
'wantNameIdEncrypted' => false,
'requestedAuthnContext' => false,
'requestedAuthnContextComparison' => 'exact',
'wantXMLValidation' => false,
'relaxDestinationValidation' => false,
'destinationStrictlyMatches' => false,
Expand Down

0 comments on commit d2feeb7

Please sign in to comment.