adobe / adobe/jwt-auth

Document format of privateKey config

Open
#61 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
13
PR merge metrics
No merged PRs in 30d

Description

It would be nice to document the expected format of the private key. I need use get an IMS token from a serverless action, and passing in all secrets as strings to the action. I can't seem to get the private key in the correct format for this library to accept it.

When using it w/ my private key i get the following error: `error: error:0909006C:PEM routines:get_name:no start line` .. which i assume is an issue w/ my private key format.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the PEM error with a serverless action's string secret and inspect how the library accepts its privateKey input. Document the accepted key format and the handling needed for the example; done means a user can format the secret and obtain an IMS token without the no-start-line error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.