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

Fix 401 jwt middleware handling #163

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Conversation

zhouzhuojie
Copy link
Collaborator

If we set to 401 unauthorized for jwt auth, let the client handles the 401 itself

@zhouzhuojie zhouzhuojie force-pushed the zz/correctly-handle-401-jwt branch from 7704a47 to ca09d76 Compare September 13, 2018 17:25
@@ -9,17 +9,6 @@ import (
"github.com/stretchr/testify/assert"
)

func TestGetEvalCacheStart(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove it since it tests nothing and introduces a data race

@zhouzhuojie zhouzhuojie force-pushed the zz/correctly-handle-401-jwt branch from ca09d76 to ed3ac2a Compare September 13, 2018 17:56
@zhouzhuojie zhouzhuojie force-pushed the zz/correctly-handle-401-jwt branch from ed3ac2a to 323e7ea Compare September 13, 2018 18:01
@zhouzhuojie zhouzhuojie merged commit 516dd45 into master Sep 13, 2018
@zhouzhuojie zhouzhuojie deleted the zz/correctly-handle-401-jwt branch September 13, 2018 18:06
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.

2 participants