mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:07:31 +00:00
feat(oidc): allow additional audience based on scope in device auth (#7685)
feat(oidc): allow additional audience based on scope
This commit is contained in:
@@ -23,6 +23,7 @@ type AddedEvent struct {
|
||||
UserCode string
|
||||
Expires time.Time
|
||||
Scopes []string
|
||||
Audience []string
|
||||
State domain.DeviceAuthState
|
||||
}
|
||||
|
||||
@@ -46,12 +47,13 @@ func NewAddedEvent(
|
||||
userCode string,
|
||||
expires time.Time,
|
||||
scopes []string,
|
||||
audience []string,
|
||||
) *AddedEvent {
|
||||
return &AddedEvent{
|
||||
eventstore.NewBaseEventForPush(
|
||||
ctx, aggregate, AddedEventType,
|
||||
),
|
||||
clientID, deviceCode, userCode, expires, scopes, domain.DeviceAuthStateInitiated}
|
||||
clientID, deviceCode, userCode, expires, scopes, audience, domain.DeviceAuthStateInitiated}
|
||||
}
|
||||
|
||||
type ApprovedEvent struct {
|
||||
|
Reference in New Issue
Block a user