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

Allow external signing of JWTs #234

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Allow external signing of JWTs #234

wants to merge 2 commits into from

Commits on Nov 26, 2024

  1. feat: Claims interface now has EncodeWithSigner(nkeys.KeyPair, fn: …

    …SignFn)` where signing can be delegated to a function. The `type SignFn func(pub string, data []byte) ([]byte, error)` is provided with the public key whose matching private key should be used to sign the provided payload.
    
    This feature enables an external signing service to be incorporated in the workflow for signing a JWT.
    
    Signed-off-by: Alberto Ricart <[email protected]>
    aricart committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    bcfeb5a View commit details
    Browse the repository at this point in the history
  2. go mod

    Signed-off-by: Alberto Ricart <[email protected]>
    aricart committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    5297029 View commit details
    Browse the repository at this point in the history