Provider defines the interface for authentication mechanisms
| 4 | |
| 5 | // Provider defines the interface for authentication mechanisms |
| 6 | type Provider interface { |
| 7 | // GetToken retrieves or generates an authentication token |
| 8 | // It returns the token string and any error encountered |
| 9 | GetToken(ctx context.Context) (string, error) |
| 10 | |
| 11 | // Login performs the authentication flow |
| 12 | // This might involve user interaction, device flows, etc. |
| 13 | Login(ctx context.Context) error |
| 14 | |
| 15 | // Name returns the name of the authentication provider |
| 16 | Name() string |
| 17 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…