zitadel-oidc/pkg/oidc/client.go
Livio Amstutz d1d04295a6 impl
2019-11-22 15:34:22 +01:00

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
)