diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-25 10:10:28 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-25 10:10:28 -0600 |
| commit | 00b0381dfccab2ddff7de04933fdb11b32695faf (patch) | |
| tree | db1e1f0048ba9cccdb415a714cb1344e8f47951f /pkg/oidc | |
| parent | 051e2435b255e0995e97d927b73f643149d9b2f3 (diff) | |
refactor: move id and entity to domain package
Diffstat (limited to 'pkg/oidc')
| -rw-r--r-- | pkg/oidc/id_token.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/oidc/id_token.go b/pkg/oidc/id_token.go index 962f372..aa79db7 100644 --- a/pkg/oidc/id_token.go +++ b/pkg/oidc/id_token.go @@ -52,6 +52,15 @@ Example ID Token from GitLab OIDC Provider: */ type IDToken = oidc.IDToken +type CustomClaims struct { + Name string `json:"name"` + Nickname string `json:"nickname"` + Email string `json:"email"` + ProfileURL string `json:"profile"` + Picture string `json:"picture"` + Groups []string `json:"groups_direct"` +} + type RawToken string func (r RawToken) String() string { |
