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

lotus-wallet: JWT Support #6360

Merged
merged 3 commits into from
May 31, 2021
Merged

lotus-wallet: JWT Support #6360

merged 3 commits into from
May 31, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented May 31, 2021

No description provided.

@magik6k magik6k merged commit 53477c2 into master May 31, 2021
@magik6k magik6k deleted the feat/wallet-jwt branch May 31, 2021 18:10
authVerify := func(ctx context.Context, token string) ([]auth.Permission, error) {
var payload jwtPayload
if _, err := jwt.Verify([]byte(token), (*jwt.HMACSHA)(authKey), &payload); err != nil {
return nil, xerrors.Errorf("JWT Verification failed: %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magik6k Could we add a log entry here or is the returned error going to be logged eventually?

@schomatis schomatis mentioned this pull request Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants