This commit is contained in:
Livio Amstutz 2019-11-22 15:34:22 +01:00
parent 85b71e0867
commit d1d04295a6
12 changed files with 383 additions and 40 deletions

18
pkg/oidc/client.go Normal file
View file

@ -0,0 +1,18 @@
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
)