TheDarkun / Elevators

Fullstack .NET Project for SOČ
0 stars 0 forks source link

Base For Discord OAuth2 #8

Closed TheDarkun closed 4 months ago

TheDarkun commented 8 months ago

Base For Discord OAuth2

Proposal

To integrate Discord OAuth2 into our application, we will have to do these steps:

  1. In the < NavComponent />, add a simple Sign In hyperlink that redirects the user to the Discord OAuth2 Page
  2. Upon successful authentication, we'll retrieve the code from query parameters
  3. After that, we'll be able to get the user token
  4. When we get the user token, we'll generate a JWT Token with all the necessary claims
  5. Then we'll store the token securely in the user's cookies.

    Details

    This implementation is just the foundation for integrating Discord OAuth2 into our application. This means that there will be no logout functionality or storing information in our database.