minder icon indicating copy to clipboard operation
minder copied to clipboard

Refactor token generation to make it testable

Open eleftherias opened this issue 2 years ago • 0 comments

Some ideas in this thread https://github.com/stacklok/minder/pull/2413#discussion_r1502784683

In summary, store a map of map[provider]*auth.OAuthConfig which is managed via a Register(string, *auth.OAuthConfig). On calls to NewOAuthConfig look up the auth.OAuthConfig from the map.

eleftherias avatar Feb 28 '24 14:02 eleftherias