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

Add authentication for WebSocket API using PAM and JWT #6

Closed
Uggah opened this issue Apr 9, 2023 · 1 comment
Closed

Add authentication for WebSocket API using PAM and JWT #6

Uggah opened this issue Apr 9, 2023 · 1 comment
Labels
Feature New feature or request

Comments

@Uggah
Copy link
Contributor

Uggah commented Apr 9, 2023

Idea: a /auth or /login HTTP endpoint. In the message body the parameters of the authentication are transferred. Then, a JWT is returned with which the user can authenticate themselves to the WebSocket API (i.e. "/ws?token=ey...").

The payload should look like the following:

Request:

{
    "auth_method": "PAM",
    "username": "username",
    "password": "password",
}

Response:

{
    "jwt": "ey..."
}

This way, other authentication methods can be implemented later on. For example:

Request:

{
    "auth_method": "OIDC"
    "token": "ey..."
}
@Uggah Uggah added the Feature New feature or request label Apr 9, 2023
@Uggah Uggah added this to the MVP - Minimum viable product milestone Apr 9, 2023
@Uggah
Copy link
Contributor Author

Uggah commented Apr 22, 2023

Resolved in #14

@Uggah Uggah closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant