chore: add enumer for iota-defined types
This commit is contained in:
parent
5fb36bf4c2
commit
9abc112f8f
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