deviceState implement IDTokenRequest directly

This commit is contained in:
Tim Möhlmann 2023-12-15 14:12:18 +02:00
parent 315ec4cedf
commit d5197e0a53
5 changed files with 82 additions and 73 deletions

View file

@ -168,15 +168,6 @@ type EndSessionRequest struct {
var ErrDuplicateUserCode = errors.New("user code already exists")
type DeviceAuthorizationState struct {
ClientID string
Scopes []string
Expires time.Time
Done bool
Subject string
Denied bool
}
type DeviceAuthorizationStorage interface {
// StoreDeviceAuthorizationRequest stores a new device authorization request in the database.
// User code will be used by the user to complete the login flow and must be unique.