Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Authentication #52

Merged
merged 8 commits into from
Sep 11, 2023
Merged

Github Authentication #52

merged 8 commits into from
Sep 11, 2023

Commits on Aug 14, 2023

  1. install react-cookie

    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    3e5bba8 View commit details
    Browse the repository at this point in the history
  2. add lib/teuthologyAPI.ts and login with github

    1. redirect to teuthology API's login
    2. AppBar uses cookie data to show username
    
    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    eea851d View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Make new 'Login' component

    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    0c3b894 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. githubLogin: Use URL() to build url

    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    3c968f1 View commit details
    Browse the repository at this point in the history
  2. add logout button and profile avatar

    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    75cd849 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. use window.location.href instead of replace()

    This preserves the browser's history stack.
    Also, add github icon to login button.
    
    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    1d1be3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9760ae View commit details
    Browse the repository at this point in the history
  3. add useUserData() hook

    Extract cookie related code from Login component
    to lib/teuthologyAPi.ts
    
    Signed-off-by: Vallari <[email protected]>
    VallariAg committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    237c061 View commit details
    Browse the repository at this point in the history