Skip to content

Feature request: Custom OAuth state #267

Description

@anderspitman

I need to store some extra information alongside the InternalStateData. In order to do this I need access to the oauth state in order to store/retrieve my data. I see two ways this could be implemented:

  1. Allow the state parameter to be overridden. This would be a very small change, as it appears the API is already set up for this. This should not break the current API. I would be happy to submit a PR for this.
  2. Instead of returning a String from client.authorize(), return a struct that contains the redirect URI and the internally generated state. This might be a more robust solution, but would also break the current API.

Are you open to this functionality?

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