-
-
Notifications
You must be signed in to change notification settings - Fork 313
Update authn_request.py #427
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
base: master
Are you sure you want to change the base?
Conversation
Values can be 0,1 empty string etc when stored in the database or in data conversion it's not required to be True/False specifically
i don't know why these tests fails, but i don't thing that its' because on the PR changes, might be it will fails with the actual code as it is as well |
The possible values for requestedAuthnContext are True, False or a List. I have tests that check that those are the introduced values. At the doc in the settings section you can read
Why don't you instead force conversion from DB to the toolkit? Your suggested code fails as a list will pass the condition:
|
it's possible to do that in another way, by checking first if the security["requestedAuthnContext"] is a list by : isintance(security["requestedAuthnContext"],list), |
fix conditions
If you first check for the list, it should be ok |
@pitbulk , i did that already in the last commit, |
@pitbulk , i am still waiting for your response, |
Values can be 0,1 empty string etc when stored in the database or in data conversion it's not required to be True/False specifically