oauth2/client/provider.go
2024-10-01 13:38:43 -04:00

18 lines
505 B
Go

package client
type IdentityProvider struct {
Host string
AuthorizationUrlPath string
TokenUrlPath string
TokenRevokationUrlPath string
}
func NewIdentityProvider(host string, authorizationUrlPath string, tokenUrlPath string, tokenRevocationUrlPath string) *IdentityProvider {
return &IdentityProvider{
Host: host,
AuthorizationUrlPath: authorizationUrlPath,
TokenUrlPath: tokenUrlPath,
TokenRevokationUrlPath: tokenUrlPath,
}
}