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
The IBM Cloud App ID SDK can be used with React to create a secure single-page application. You will need an IBM Cloud App ID instance with a single-page application created. Use the client ID and discovery endpoint from your application credentials to initialize the App ID instance.
3
+
The IBM Cloud App ID SDK can be used with Angular to create a secure single-page application. You will need an IBM Cloud App ID instance with a single-page application created. Use the client ID and discovery endpoint from your application credentials to initialize the App ID instance.
4
4
5
5
## Prerequisites
6
6
* Node.js version 8 or later
@@ -14,9 +14,9 @@ The IBM Cloud App ID SDK can be used with React to create a secure single-page a
8. Save all the files and in your terminal, run the following command to access your app from http://localhost:4200.
104
-
```
105
-
ng serve
106
-
```
107
-
9. Make sure you register your redirect_uri (in this case http://localhost:3000/*) with App ID to ensure that only authorized clients are allowed to participate in the authorization workflow. This can be done on the App ID dashboard under the Manage Authentication tab in the Authentication Settings. Click [here](https://cloud.ibm.com/docs/services/appid?topic=appid-managing-idp#add-redirect-uri) for more details.
29
+
5. Make sure you register your redirect_uri (in this case http://localhost:4200/*) with App ID to ensure that only authorized clients are allowed to participate in the authorization workflow. This can be done on the App ID dashboard under the Manage Authentication tab in the Authentication Settings. Click [here](https://cloud.ibm.com/docs/services/appid?topic=appid-managing-idp#add-redirect-uri) for more details.
108
30
109
31
Well done! You successfully integrated IBM Cloud App ID's SDK for SPA into an Angular application.
Copy file name to clipboardexpand all lines: react-sample-app/README.md
+1-4
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# IBM Cloud AppID React Sample App
1
+
# IBM Cloud App ID React Sample App
2
2
3
3
The IBM Cloud App ID SDK can be used with React to create a secure single-page application. You will need an IBM Cloud App ID instance with a single-page application created. Use the client ID and discovery endpoint from your application credentials to initialize the App ID instance.
4
4
@@ -22,14 +22,11 @@ cd react-sample-app
22
22
```
23
23
npm install
24
24
```
25
-
26
25
4. Start the development server. Navigate to http://localhost:3000 to access your application.
27
26
```
28
27
npm start
29
28
```
30
29
31
-
The app will automatically reload if you change any of the source files.
32
-
33
30
## Detailed instructions on Creating your app
34
31
35
32
1. Set up a frontend build pipeline using create-react-app. Then move into the project directory.
0 commit comments