* chore(example): implement OpenID Provider * jwt profile and fixes * some comments * remove old op example * fix code flow example * add service user and update readme * fix password for example use * ignore example and mock folders for code coverage * Update example/server/internal/storage.go Co-authored-by: Silvan <silvan.reusser@gmail.com> * Update client.go Co-authored-by: Silvan <silvan.reusser@gmail.com>
25 lines
463 B
Go
25 lines
463 B
Go
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
|
|
}
|