chore(example): implement OpenID Provider

This commit is contained in:
Livio Amstutz 2022-03-16 10:58:50 +01:00
parent d740fe1710
commit d91fe7aacf
No known key found for this signature in database
GPG key ID: 26BB1C2FA5952CF0
9 changed files with 1223 additions and 5 deletions

View file

@ -0,0 +1,25 @@
package internal
import "time"
type Token struct {
ID string
ApplicationID string
Subject string
RefreshTokenID string
Audience []string
Expiration time.Time
Scopes []string
}
type RefreshToken struct {
ID string
Token string
AuthTime time.Time
AMR []string
Audience []string
UserID string
ApplicationID string
Expiration time.Time
Scopes []string
}