Skip to content

OPTIONS request blocked on userinfo endpoint  #304

@defgsus

Description

@defgsus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions