onelogin-saml-bundle
onelogin-saml-bundle copied to clipboard
Need to use urn:federation:authentication:windows for requestedAuthnContext
Hello,
Thanks for your work !
I need to specify the value 'urn:federation:authentication:windows' for requestedAuthnContext conffiguration, but there is configuration control with do not permit to use something diffrent from 'urn:oasis:names:tc:SAML:2.0:ac:classes:' (Configuration.php, line 169)
Why (It does not appear that php-saml lib is so restricted) ? How can I fix this ?
->variableNode('requestedAuthnContext')
->validate()
->ifTrue(static fn ($value) => !(\is_bool($value) || \is_array($value)))
->thenInvalid('must be an array or a boolean.')
->end()
->validate()
->ifTrue(static fn ($value) => \is_array($value) && array_filter($value, static fn ($item): bool => !str_starts_with($item, 'urn:oasis:names:tc:SAML:2.0:ac:classes:')))
->thenInvalid('invalid value.')
->end()
->end()
`
Thanks for your reply.
N.B : using last release version (1.3.2)