You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are installing from the jump host, install npm and the firebase CLI using the links above.
20
20
21
-
# Build and deploy the app
21
+
##Build and deploy the app
22
22
23
-
## Add Google identity provider
23
+
### Add Google identity provider
24
+
25
+
Add Google as an identity provider. You can do this in the [GCP console](https://console.cloud.google.com/customer-identity/providers) or in the [Firebase console](https://console.firebase.google.com/). In firebase, navigate to Build > Authentication > Sign-in Method. Refer to authentication component [README.md](https://github.com/GPS-Solutions/core-solution-services/blob/main/components/authentication/README.md) for more information.
26
+
27
+
### Authorizing User Domains during Sign-in
28
+
The frontend_react component provides an initial check for authorizing user domains during a user's sign-in process with Google. Thus, you'll need to change the `authProviders` and `authorizedDomains` attribute within `AppConfig` with your user's or client's organizational domain.
29
+
30
+
Under the `frontend_react/src/src/utils/AppConfig.ts` file:
> Add or Change the `authProviders` and `authorizedDomains` to your respective input.
46
+
47
+
>**NOTE:** The `authorizedDomain` attributes are in reg expressions. (i.e "/@gmail\.com$/i")
48
+
49
+
> In addition to this frontend configuration, you'll need to ensure the [Google Cloud Identity](https://console.cloud.google.com/customer-identity/providers) has added the providers on Google Cloud's backend. Each provider (e.g Microsoft, Facebook) will have require an authentication client on the provider-side that Google Cloud refers to via `App ID` and `App Secret` to direct authentication. Ensure Authorized Redirect URIs are set on the authentication provider side. See provider's documentation for more info.
24
50
25
-
Add Google as an identity provider. You can do this in the [GCP console](https://console.cloud.google.com/customer-identity/providers) or in the [Firebase console](https://console.firebase.google.com/). In firebase, navigate to Build > Authentication > Sign-in Method.
26
51
27
52
## Install dependencies
28
53
Execute all commands below from the `components/frontend_react/webapp` directory. You only need to install dependencies once, unless you update the app.
@@ -59,14 +84,22 @@ You should build the app on first deploy, and every time you make updates to the
59
84
npm run build
60
85
```
61
86
62
-
63
87
## Deploy with firebase
64
88
Deploy the app to firebase hosting with the following command:
>This allows your backend to authorize your frontend web app in requesting an OAuth 2.0 authentication.Without this authorized redirect URIs, you will receive an unauthorized error.
101
+
102
+
70
103
# Development
71
104
72
105
## Run a local dev server
@@ -75,4 +108,3 @@ This command will start a local instance of the app for development.
0 commit comments