-
-
Notifications
You must be signed in to change notification settings - Fork 246
Open
Description
The problem is partly described in #249 but was subsequently ignored.
At least the oidc-client-js library does an OPTIONS request against the userinfo endpoint which gets blocked by the `protected_resource_view' decorator.
The openid-connect-core specification does not explicitly require supporting OPTIONS, though it's seems to be practiced by implementations. For example, auth0.com supports an unauthorized OPTIONS request against userinfo.
As @q3aiml points out, supporting OPTIONS is part of supporting CORS.
I suggest an unprotected_methods parameter to the protected_resource_view decorator in lib/utils/oauth2.py, which would make it possible to let OPTIONS requests pass for this endpoint but does not break any existing code.
zvyn
Metadata
Metadata
Assignees
Labels
No labels