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

jwt_delegate startup #257

Open
wants to merge 2 commits into
base: experimental
Choose a base branch
from
Open

Conversation

axl-pis
Copy link
Contributor

@axl-pis axl-pis commented May 24, 2021

Adds the jwt_delegate extension to the configuration file and is disabled by default. This addition also includes the url of a server that will receive the delegation of the authentication procedure.
jwt_gelegate is blocking. That is, as long as the verification by the delegated server is not accomplished, the following extension is not executed.
When the request response is retrieved, the "onreadystatechange" callback is executed.
The cases covered by the callback are :

  • code 200 : the user's node is retrieved, we try to create it locally or we update it. Then we execute the following extension.
  • code >= 500 : it means url errors or server crashes.
  • code 401 : the authentication of the user on the delegated server has failed.

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

Successfully merging this pull request may close these issues.

1 participant