ToolJet/frontend/src
Sherfin Shamsudeen d88139d5b7
Feature/merge google sso to community edition (#1420)
* SSO 🔥 (#2)

* Add rough implementation of google SSO

* Use env variables for storing Google Oauth client id

* Set organization user to active when a new user is created via sso

This commit also fetches first name and last name from the payload
received from google.
Also adds some refactoring.

* Apply proper styles to google login button

* Refactor oauth controller

* Move google specific logic to a separate service

* Fail sign-in if google could not verify idToken

* Refactoring update for GoogleOAuthService

* Change env variable name for google sso client id

* Show Google sign-in button only if client id env variable is given

* Add SSO_GOOGLE_OAUTH2_CLIENT_ID to app.json

* Whitelist apis.google.com in CSP

* Add accounts.google.com to CSP

* Add documentation for Google SSO

* Add e2e tests for Google SSO

* Resolve minor linting issues

* Avoid use of raw query in migration for SSO ID

This commit also adds an index for SSO ID

* Verify domain of user's email id for single sign on

* Add documentation for RESTRICTED_DOMAIN env variable in SSO

* Move SSO controllers and services to ee folder

* Move GoogleLoginButton to ee folder

* Test the restricted domain verification for Google SSO

* Remove unnecessary console.log

* Apply better styles to Sign in with google button

* Remove documentation for Google SSO

This will be added to the community edition repo

* Remove unnecessary static images

* Fetch Google OAuth2 client id from server instead of client env (#3)

* Check for existing email when signing in via SSO (#4)

* hotfix oauth service return type

* hotfix sso user creation

* Allow disabling sign-up via SSO (#5)

* hotfix file input change on import/export

* Align SSO button on login box center (#6)

* Fix: group permission not being set on sso (#7)

* fixes group permission not being set on sso

* update specs for sso

* lint fix

* add user id on login response

* decamelize keys on login response

* fix specs

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-11-17 16:51:50 +05:30
..
_components Adjust confirmation dialog logic so closed dialogs can reopen (#1259) 2021-10-29 07:18:33 +05:30
_helpers Feature/event handlers for table toggle (#1377) 2021-11-08 12:58:05 +05:30
_hooks Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
_services Feature/merge google sso to community edition (#1420) 2021-11-17 16:51:50 +05:30
_styles Responsive canvas (#1363) 2021-11-16 17:14:09 +05:30
_ui Fix for users api being called multiple times (#1389) 2021-11-11 21:23:02 +05:30
App Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
Editor Responsive canvas (#1363) 2021-11-16 17:14:09 +05:30
ForgotPassword Updated client-side input validations (#1282) 2021-10-28 08:25:00 +05:30
HomePage Chore: Revise and add specs for folders (#1391) 2021-11-15 11:43:48 +05:30
InvitationPage Updated client-side input validations (#1282) 2021-10-28 08:25:00 +05:30
LoginPage Feature/merge google sso to community edition (#1420) 2021-11-17 16:51:50 +05:30
ManageGroupPermissionResources Fixes CSS of border-bottom of active classname in group manager (#1407) 2021-11-15 21:14:53 +05:30
ManageGroupPermissions Show confirmation dialog when deleting a group (#1217) 2021-10-29 07:27:48 +05:30
ManageOrgUsers Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810) 2021-11-01 12:58:03 +05:30
Oauth2 Fix linting errors across the app (#785) 2021-09-21 19:18:28 +05:30
Onboarding Fix linting errors across the app (#785) 2021-09-21 19:18:28 +05:30
ResetPassword Updated client-side input validations (#1282) 2021-10-28 08:25:00 +05:30
SettingsPage show toast on renaming first/last name to empty string (#1328) 2021-10-29 14:33:48 +05:30
SignupPage Updated client-side input validations (#1282) 2021-10-28 08:25:00 +05:30
index.html Codehinter enhancements 2021-08-21 09:39:04 +05:30
index.jsx Use strict equality in comparision operators (#1006) 2021-10-14 13:47:30 +05:30