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