chore: add enumer for iota-defined types (#197)
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
parent
531caae613
commit
b84bcbed76
4 changed files with 360 additions and 7 deletions
|
@ -6,15 +6,18 @@ import (
|
|||
"github.com/zitadel/oidc/pkg/oidc"
|
||||
)
|
||||
|
||||
//go:generate go get github.com/dmarkham/enumer
|
||||
//go:generate go run github.com/dmarkham/enumer -linecomment -sql -json -text -yaml -gqlgen -type=ApplicationType,AccessTokenType
|
||||
|
||||
const (
|
||||
ApplicationTypeWeb ApplicationType = iota
|
||||
ApplicationTypeUserAgent
|
||||
ApplicationTypeNative
|
||||
ApplicationTypeWeb ApplicationType = iota // web
|
||||
ApplicationTypeUserAgent // user_agent
|
||||
ApplicationTypeNative // native
|
||||
)
|
||||
|
||||
const (
|
||||
AccessTokenTypeBearer AccessTokenType = iota
|
||||
AccessTokenTypeJWT
|
||||
AccessTokenTypeBearer AccessTokenType = iota // bearer
|
||||
AccessTokenTypeJWT // JWT
|
||||
)
|
||||
|
||||
type ApplicationType int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue