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 API to list all available signing methods #63

Closed
lggomez opened this issue Aug 3, 2021 · 0 comments · Fixed by #123
Closed

Add API to list all available signing methods #63

lggomez opened this issue Aug 3, 2021 · 0 comments · Fixed by #123
Labels
enhancement New feature or request jwt-go: legacy

Comments

@lggomez
Copy link
Member

lggomez commented Aug 3, 2021

Migrated from dgrijalva/jwt-go#410:

trygvis commented on Jun 17, 2020

I'm building a CLI to create tokens, and it would be nice if there was a way to find all registered signing methods.

Something like

func GetSigningMethods() ([]SigningMethod)

@lggomez lggomez added enhancement New feature or request jwt-go: legacy labels Aug 3, 2021
AlexanderYastrebov added a commit to AlexanderYastrebov/jwt that referenced this issue Nov 10, 2021
The help message looks like:
```
-alg string
      signing algorithm identifier [ES256 ES384 ES512 EdDSA HS256 HS384 HS512 PS256 PS384 PS512 RS256 RS384 RS512 none]
```

Also fixes golang-jwt#63

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
AlexanderYastrebov added a commit to AlexanderYastrebov/jwt that referenced this issue Nov 10, 2021
The help message looks like:
```
-alg string
      signing algorithm identifier [ES256 ES384 ES512 EdDSA HS256 HS384 HS512 PS256 PS384 PS512 RS256 RS384 RS512 none]
```

Also fixes golang-jwt#63

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
AlexanderYastrebov added a commit to AlexanderYastrebov/jwt that referenced this issue Nov 15, 2021
The help message looks like:
```
  -alg string
        signing algorithm identifier, one of
        ES256, ES384, ES512, EdDSA, HS256, HS384, HS512,
        PS256, PS384, PS512, RS256, RS384, RS512, none
```

Also fixes golang-jwt#63

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
AlexanderYastrebov added a commit to AlexanderYastrebov/jwt that referenced this issue Nov 15, 2021
The help message looks like:
```
  -alg string
        signing algorithm identifier, one of
        ES256, ES384, ES512, EdDSA, HS256, HS384, HS512,
        PS256, PS384, PS512, RS256, RS384, RS512, none
```

Also fixes golang-jwt#63

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jwt-go: legacy
Projects
None yet
1 participant