mirror of
https://github.com/distribution/distribution.git
synced 2025-09-01 23:17:33 +00:00
Merge pull request #1403 from dmcgowan/auth-const-keys
Update auth context keys to use constant
This commit is contained in:
@@ -376,7 +376,7 @@ func TestAccessController(t *testing.T) {
|
||||
t.Fatalf("accessController returned unexpected error: %s", err)
|
||||
}
|
||||
|
||||
userInfo, ok := authCtx.Value("auth.user").(auth.UserInfo)
|
||||
userInfo, ok := authCtx.Value(auth.UserKey).(auth.UserInfo)
|
||||
if !ok {
|
||||
t.Fatal("token accessController did not set auth.user context")
|
||||
}
|
||||
|
Reference in New Issue
Block a user