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

eKV Login API #85

Open
hanisirfan opened this issue Feb 25, 2022 · 0 comments
Open

eKV Login API #85

hanisirfan opened this issue Feb 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hanisirfan
Copy link
Member

hanisirfan commented Feb 25, 2022

This feature is for v0.3.0

Create an API to allow SeaJell user to login with eKV credentials.

API request to eKV will be verified with an API key provided by eKV (use Sanctum if possible, idk if it is). This API key is bound to a hostname which is SeaJell hostname. If no API key or the hostname doesn't match with its hostname, eKV API will return an error.

The API will return with a response which consist of basic user information that SeaJell needed to function like user name, user identification number etc. The response will be saved into SeaJell database to reduce the amount of requests when regenerating e-cert for user.

The flow

  1. eKV admin enable eKV Login API feature.
  2. eKV admin generate an API key for the SeaJell hostname (for API key validation).
  3. SeaJell admin enable eKV Login API and enter eKV hostname (for API request) and API key from eKV.
  4. User tick the "Login with eKV" box on SeaJell login page which allows them to login with eKV credentials. This box will only appear when SeaJell admin enable eKV Login API.
  5. Response from the API will be stored inside a special eKV user table in SeaJell database. The data in this table will be used for eKV user e-cert.

For now idk how SeaJell e-cert addition (individual or bulk) function will work and also how other SeaJell features will work. I'll think about this later.

@hanisirfan hanisirfan added the enhancement New feature or request label Feb 25, 2022
@hanisirfan hanisirfan self-assigned this Feb 25, 2022
@hanisirfan hanisirfan changed the title SeaJell Login API eKV Login API Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant