Provide the pub key for local validation #16

Closed
opened 2022-10-14 17:35:33 +02:00 by rmanach · 0 comments
rmanach commented 2022-10-14 17:35:33 +02:00 (Migrated from gitea.thegux.fr)

In order to avoid to call /validate/ to valid a token, the public key may be downloaded on local (provided in a JSON format). To do so:

  • add a new route like: /pubkey/
  • read the pub key and encode it in base64
  • return an HTTPResponse with a JSON body:
{"pubkey":"<pubkey_base64>"}
In order to avoid to call `/validate/` to valid a token, the public key may be downloaded on local (provided in a JSON format). To do so: * add a new route like: **/pubkey/** * read the pub key and encode it in **base64** * return an `HTTPResponse` with a JSON body: ```json {"pubkey":"<pubkey_base64>"} ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rmanach/simple-auth#16
No description provided.