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

Caching of meta user does not seem to work #2758

Open
gwossum opened this issue Apr 13, 2023 · 0 comments
Open

Caching of meta user does not seem to work #2758

gwossum opened this issue Apr 13, 2023 · 0 comments

Comments

@gwossum
Copy link
Member

gwossum commented Apr 13, 2023

Caching of meta user does not seem to work. Even when a user should be cached, the auth service will still get the user from the meta API.

The following lines of test code should work without an gock request for Alice, but fail because the meta API caching is not working:

// This should be cached not require a request to the meta API, yet it does...
/*
alice, err = srv.Authenticate("alice", "CaptainPicard")
require.NoError(t, err)
require.Equal(t, authAlice, alice)
*/

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

No branches or pull requests

1 participant