-
Notifications
You must be signed in to change notification settings - Fork 259
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
Exception on empty scopes #389
Comments
Can you provide the traceback? |
See below while the key exists for the scope "groups" it's value is empty and the error ends up coming from the array access val[0] /usr/lib/python2.7/site-packages/oic/oauth2/message.py in to_dict Here's the data: |
Looks like a bug to me, yes. The base class should handle an empty list. Not sure about empty scopes, but at least the message handling is wrong. |
If you're doing OIDC then scope MUST have at least one value (=='oidc'). |
Hmm, VerifyError you can only get when you import into a Message instance not when your converting to some other format. So not applicable here. |
'scope' here is probably the wrong keyword. |
So where is the problem ? |
Appears to have been fixed in #411 |
OK, closing then. |
Hi All, not sure if the behavior is intended but we've noticed that if there is an empty scope i.e. a scope is in the message but it is an empty string instead of a string or an array, then there is an indexoutofbounds exception in message.py
Is this a bug or should scopes never be empty? We're using keycloak and there certain scope around group membership which produce empty scope.
The text was updated successfully, but these errors were encountered: