Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// Validate valides the code with the oauth client and returns the user
Validate(ctx context.Context, creds *model.ProviderCredentials, code, redirectUrl string) (*auth.Oauth2Claims, error)
// RedirectUrl generates a redirect url for the oauth2 client
RedirectUrl(redirectUrl, rigRedirect string, projectId uuid.UUID, creds *model.ProviderCredentials) (string, error)
// Test validates if the oauth credentials are valid
Test(ctx context.Context, privateKey, publicKey, redirectUrl string) error
}
Click to show internal directories.
Click to hide internal directories.