-
-
Notifications
You must be signed in to change notification settings - Fork 4
Auth abstraction #22
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Different forges support different auth methods (personal tokens, app tokens, OAuth). Even within a single forge like GitHub there are multiple options.
Define a common auth interface so callers can swap auth methods without changing the rest of their code. Something like a GetToken(namespace, repo) method that returns the right credential regardless of how it was obtained.