-
Notifications
You must be signed in to change notification settings - Fork 0
Login
Learn Tool application makes use of Oauth 2.0 and JWT authentication. Learn Tool supports local authentication and Google authentication.
The local authentication stores the user credentials in the PostgreSQL database, and the passwords are encoded.
The user has to first register in the Learn Tool application. From the initial page, click on the link "Sign up!":
Then register the user from the "Sign up to Learn Tool" page:
The fields "Name", "Email", and "Password" are required in the login form. Click on the button "Sign Up" in order to register the user:
After the user has been sucessfully registered, you can authenticate to the Learn Tool application from the Login page:
Learn Tool supports the Google authentication using Oauth 2.0 and JWT.
Open the Google API console of your Google account: https://console.cloud.google.com/apis/credentials
Create a new OAuth2.0 client ID and specify the following as authorized redirect URL:
http://localhost:8080/oauth2/callback/google
Configure the file "backend/src/main/resources/application.yml" with the Google Client ID and secret in the property "security.oauth2.client.registration.google".
Register a new App in the Google OAuth consent screen page. Define the test accounts in case that the App is not still published.
From the login page, click on the button "Log in with Google":
Authenticate the user in Google. After the successful authentication, the session will be redirected to the Workspaces page.