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 auth and functionality to Certificate Auth Page #11

Open
6 tasks
Gokul2003g opened this issue Oct 18, 2024 · 0 comments
Open
6 tasks

Add auth and functionality to Certificate Auth Page #11

Gokul2003g opened this issue Oct 18, 2024 · 0 comments

Comments

@Gokul2003g
Copy link
Owner

Gokul2003g commented Oct 18, 2024

Description:

The UI is now complete, and the following tasks need to be implemented:

  • Add Authentication:

    • Implement authentication similar to the web UI, allowing users to log in via Google and obtain the access token.
  • Add Upload Button for Public Key:

    • Add a button to upload or select the public key file.
  • Send Request to CA-Server:

    • After selecting the public key, send a request to the CA-Server with this payload structure:

accessToken to be sent in Authentication Header

```json
{
  "email": "user-email",
  "provider": "google",
  "publicKey": "public-key",
  "ishost": "true|false",
}
```
  • Download Certificate:

    • Obtain the certificate from the CA-Server response and provide an option to download it.
  • Retrieve and Display User Gravatar:

    • Use the access token to get the user's Gravatar and display it in the UI.
  • Add Signout Button:

    • Add a signout button, similar to the web UI, to allow users to log out.
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