Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not request the same access token when there is a similar request in-flight #2

Open
tanguilp opened this issue May 30, 2020 · 0 comments

Comments

@tanguilp
Copy link
Owner

When requesting an access token, none can be found with the matching scopes and a refresh token exists for the subject and the issuer, a request is made to the token endpoint for a new one.

If the same token is requested while the request is processing, another request is made, and so on until a token is eventually saved in the backend.

We can end up with many access tokens with same specification (for instance, many tokens for the ["scope1", "scope2"] scopes while one would be sufficient.

Solving this issue probably requires dealing with interesting stateful features of Erlang / Elixir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant