TomHelyer / Arena-51-Stream-Pkg

1 stars 0 forks source link

[New Feature] Add a Login page + logic for OAuth2 with Discord #27

Open GeneralHuber opened 1 year ago

GeneralHuber commented 1 year ago

Description

Currently the control page can be seen and manipulated by everyone, as long as the URL is known. Changes on the control page are not logged and during scrims and/or tournaments an unknown third person could change teams and scores and nothing could be done against it.

Nothing happened yet - but with implementing a login for the control page we close that issue before it occurs. Having a secure site is common practice and necessary to implement other features dealing with - for example - Twitch API calls.

Proposed Feature

To gain access the Discord User has to be in the Arena 51 Gaming Discord and needs to have either a Producer or Manager role. Otherwise they will get a message to contact someone from staff if they think they should have access to the control page.

GeneralHuber commented 1 year ago

https://www.passportjs.org/packages/passport-discord/ https://supabase.com/docs/guides/auth/social-login/auth-discord?language=js#access-your-discord-account