18 lines
505 B
Go
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,
|
|
}
|
|
}
|