8000 Access tokens should be revoked when multiple attempts are made to exchange the same authorization code · Issue #1713 · doorkeeper-gem/doorkeeper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Access tokens should be revoked when multiple attempts are made to exchange the same authorization code #1713
Open
@ransombriggs

Description

@ransombriggs

Steps to reproduce

I am working through a review with our security team and they requested that I revoke access tokens when there are multiple attempts to exchange the authorization code. This is one of the security recommendations from the rfc and I went to see if there were any hooks available that would allow us to revoke the tokens, but none seem to be available. Specifically I was hoping that I could register a hook at this point so that I can revoke the access tokens. If it would help, I can make a PR for this functionality.

Authorization codes MUST be short lived and single-use. If the
authorization server observes multiple attempts to exchange an
authorization code for an access token, the authorization server
SHOULD attempt to revoke all access tokens already granted based on
the compromised authorization code.

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

      0