github.com/kubeshop/testkube@v1.17.23/pkg/oauth/interface.go (about) 1 package oauth 2 3 import "golang.org/x/oauth2" 4 5 // ProviderType is provider type 6 type ProviderType string 7 8 const ( 9 // GithubProviderType is github provider type 10 GithubProviderType ProviderType = "github" 11 ) 12 13 // Validator describes ouath validation methods 14 type Validator interface { 15 // Validate validates oauth token 16 Validate(accessToken string) error 17 // GetEndpoint returns oauth endpoint 18 GetEndpoint() oauth2.Endpoint 19 }