oauth2/client/provider.go

18 lines
505 B
Go
Raw Normal View History

2024-10-01 17:38:43 +00:00
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,
}
}