Skip to content

Add auth and functionality to Certificate Auth Page #11

@carb1d3

Description

@carb1d3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions