18 lines
284 B
Go
18 lines
284 B
Go
package oidc
|
|
|
|
type Client interface {
|
|
RedirectURIs() []string
|
|
Type() ClientType
|
|
LoginURL(string) string
|
|
}
|
|
|
|
type ClientType int
|
|
|
|
func (c ClientType) IsConvidential() bool {
|
|
return c == ClientTypeConfidential
|
|
}
|
|
|
|
const (
|
|
ClientTypeConfidential ClientType = iota
|
|
ClientTypePublic
|
|
)
|