chore(example): implement OpenID Provider
This commit is contained in:
parent
d740fe1710
commit
d91fe7aacf
9 changed files with 1223 additions and 5 deletions
25
example/server/internal/token.go
Normal file
25
example/server/internal/token.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue