Skip to content

AuthorizationView.get overwrites the request object #315

@alexbecker

Description

@alexbecker

When a request is made to /o/authorize, the AuthorizationView.get function sets kwargs['request'] at L118. This replaces the WSGIRequest object in the RequestContext object ultimately passed to the authorization template with an oauthlib.Request object, which does not have the same attributes to begin with and has not passed through the same middleware. This can break templates which use the missing attributes on the request object.

For some reason this issue only occurs for me with Django 1.8, possibly due to changes in template and template context processing.

If this is not intentional, then the fix is trivial. I would gladly submit such a PR since we have had to fork this project in order to work around this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions