Skip to content

Fix 401 jwt middleware handling#163

Merged
zhouzhuojie merged 1 commit into
masterfrom
zz/correctly-handle-401-jwt
Sep 13, 2018
Merged

Fix 401 jwt middleware handling#163
zhouzhuojie merged 1 commit into
masterfrom
zz/correctly-handle-401-jwt

Conversation

@zhouzhuojie
Copy link
Copy Markdown
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
"github.com/stretchr/testify/assert"
)

func TestGetEvalCacheStart(t *testing.T) {
Copy link
Copy Markdown
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