1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

jwt: make the Blocklist an interface, so end-developers can implement their own storage (e.g. redis)

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-10-18 21:51:25 +03:00
parent 3db77684ec
commit 02bfc83f2a
3 changed files with 36 additions and 17 deletions

View File

@@ -63,7 +63,7 @@ func TestVerify(t *testing.T) {
func testWriteVerifyBlockToken(t *testing.T, j *jwt.JWT) {
t.Helper()
j.UseBlocklist()
j.InitDefaultBlocklist()
j.Extractors = append(j.Extractors, jwt.FromJSON("access_token"))
customClaims := &userClaims{