Skip to content

Commit

Permalink
Added missing scopes to mock auth; Fixes #238
Browse files Browse the repository at this point in the history
  • Loading branch information
Xemdo committed May 23, 2023
1 parent 2ce96de commit 1ddd18e
Showing 1 changed file with 49 additions and 29 deletions.
78 changes: 49 additions & 29 deletions internal/mock_auth/mock_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,55 @@ var validScopesByTokenType = map[string]map[string]bool{
"analytics:read:games": true,
},
USER_ACCESS_TOKEN: {
"analytics:read:extensions": true,
"analytics:read:games": true,
"bits:read": true,
"channel:edit:commercial": true,
"channel:manage:broadcast": true,
"channel:manage:extensions": true,
"channel:manage:polls": true,
"channel:manage:predictions": true,
"channel:manage:redemptions": true,
"channel:manage:videos": true,
"channel:read:editors": true,
"channel:read:hype_train": true,
"channel:read:polls": true,
"channel:read:predictions": true,
"channel:read:redemptions": true,
"channel:manage:schedule": true,
"channel:read:stream_key": true,
"channel:read:subscriptions": true,
"clips:edit": true,
"moderation:read": true,
"moderator:manage:automod": true,
"user:edit": true,
"user:edit:follows": true,
"user:read:email": true,
"user:manage:blocked_users": true,
"user:read:blocked_users": true,
"user:read:broadcast": true,
"user:read:follows": true,
"user:read:subscriptions": true,
"analytics:read:extensions": true,
"analytics:read:games": true,
"bits:read": true,
"channel:edit:commercial": true,
"channel:manage:broadcast": true,
"channel:manage:moderators": true,
"channel:manage:polls": true,
"channel:manage:predictions": true,
"channel:manage:raids": true,
"channel:manage:redemptions": true,
"channel:manage:schedule": true,
"channel:manage:videos": true,
"channel:manage:vips": true,
"channel:read:charity": true,
"channel:read:editors": true,
"channel:read:goals": true,
"channel:read:hype_train": true,
"channel:read:polls": true,
"channel:read:predictions": true,
"channel:read:redemptions": true,
"channel:read:stream_key": true,
"channel:read:subscriptions": true,
"channel:read:vips": true,
"clips:edit": true,
"moderation:read": true,
"moderator:manage:announcements": true,
"moderator:manage:automod": true,
"moderator:manage:automod_settings": true,
"moderator:manage:banned_users": true,
"moderator:manage:blocked_terms": true,
"moderator:manage:chat_messages": true,
"moderator:manage:chat_settings": true,
"moderator:manage:shoutouts": true,
"moderator:manage:shield_mode": true,
"moderator:read:automod_settings": true,
"moderator:read:blocked_terms": true,
"moderator:read:followers": true,
"moderator:read:chatters": true,
"moderator:read:shield_mode": true,
"user:edit": true,
"user:edit:broadcast": true,
"user:manage:blocked_users": true,
"user:manage:chat_color": true,
"user:manage:whispers": true,
"user:read:blocked_users": true,
"user:read:broadcast": true,
"user:read:email": true,
"user:read:follows": true,
"user:read:subscriptions": true,
},
}

Expand Down

0 comments on commit 1ddd18e

Please sign in to comment.