Skip to content

Commit 27e496e

Browse files
authored
Merge pull request #362 from maekawataiki/doc
Doc Update
2 parents 8c269d8 + c73775f commit 27e496e

File tree

2 files changed

+39
-23
lines changed

2 files changed

+39
-23
lines changed

Documentation/ClientDeveloperDocumentation.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
- [Instruction for an AWS Amplify client](#instruction-for-an-aws-amplify-client)
66
- [Instruction for any other client (not using AWS Amplify)](#instruction-for-any-other-client-not-using-aws-amplify)
7-
- [Choose your flow (Implicit, PKCE)](#choose-your-flow-implicit-pkce)
8-
- [Implicit flow](#implicit-flow)
9-
- [PKCE flow](#pkce-flow)
10-
- [How to create a login button/link](#how-to-create-a-login-buttonlink)
11-
- [How to redirect from authenticated page when no JWT token provided](#how-to-redirect-from-authenticated-page-when-no-jwt-token-provided)
12-
- [How to create a logout link](#how-to-create-a-logout-link)
13-
- [How to create a switch user](#how-to-create-a-switch-user)
14-
- [How to create a signup link](#how-to-create-a-signup-link)
15-
- [How to direct to the account settings page](#how-to-direct-to-the-account-settings-page)
16-
- [How to direct to the account security settings page](#how-to-direct-to-the-account-security-settings-page)
17-
- [How to direct to the SSO dashboard](#how-to-direct-to-the-sso-dashboard)
18-
- [How to verify a JWT token](#how-to-verify-a-jwt-token)
19-
- [How to refresh the tokens](#how-to-refresh-the-tokens)
20-
- [Migration instructions](#migration-instructions)
21-
- [If you use a standard OIDC client](#if-you-use-a-standard-oidc-client)
7+
- [Choose your flow (Implicit, PKCE)](#choose-your-flow-implicit-pkce)
8+
- [Implicit flow](#implicit-flow)
9+
- [PKCE flow](#pkce-flow)
10+
- [How to create a login button/link](#how-to-create-a-login-buttonlink)
11+
- [How to redirect from authenticated page when no JWT token provided](#how-to-redirect-from-authenticated-page-when-no-jwt-token-provided)
12+
- [How to create a logout link](#how-to-create-a-logout-link)
13+
- [How to create a switch user](#how-to-create-a-switch-user)
14+
- [How to create a signup link](#how-to-create-a-signup-link)
15+
- [How to direct to the account settings page](#how-to-direct-to-the-account-settings-page)
16+
- [How to direct to the account security settings page](#how-to-direct-to-the-account-security-settings-page)
17+
- [How to direct to the SSO dashboard](#how-to-direct-to-the-sso-dashboard)
18+
- [How to verify a JWT token](#how-to-verify-a-jwt-token)
19+
- [How to refresh the tokens](#how-to-refresh-the-tokens)
20+
- [Migration instructions](#migration-instructions)
21+
- [If you use a standard OIDC client](#if-you-use-a-standard-oidc-client)
2222

2323
This document explains how to use the broker as a login solution for your websites and mobile application.
2424

@@ -35,7 +35,7 @@ Here is an example of configuration:
3535
import { Auth } from "aws-amplify";
3636
3737
Auth.configure({
38-
userPoolId: "us-west-2_XXXXXXXXX", // This won't be used, but needs to match Cognito User Pool ID format
38+
userPoolId: "us-west-2_XXXXXXXXX", // This won't be used, but needs to match Cognito User Pool ID format with specified region
3939
userPoolWebClientId: "<your-app-client-id>",
4040
oauth: {
4141
domain: "<your-broker-domain>", // do not include https://

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
- [Live demo](#live-demo)
44
- [Documentation](#documentation)
5-
- [User Documentation](#user-documentation)
6-
- [Client Developer Documentation](#client-developer-documentation)
7-
- [Developer Documentation](#developer-documentation)
8-
- [Comparison with the Amazon Cognito Hosted UI](#comparison-with-the-amazon-cognito-hosted-ui)
5+
- [User Documentation](#user-documentation)
6+
- [Client Developer Documentation](#client-developer-documentation)
7+
- [Developer Documentation](#developer-documentation)
8+
- [Comparison with the Amazon Cognito Hosted UI](#comparison-with-the-amazon-cognito-hosted-ui)
99
- [Architecture](#architecture)
1010
- [Contributing](#contributing)
1111
- [Security](#security)
@@ -32,12 +32,28 @@ __Current features are:__
3232
* Migration helper (transparent migration from an existing user base to this project)
3333
* account setting page with various customer attributes
3434
* SSO dashboard (listing apps)
35-
* consent approbation
35+
* consent approbationo
3636

3737
This is a simplified view of the scope of the project (what this repository is about):
3838

3939
![Projet Scope Image](Documentation/Images/SimplifiedProjectScope.png "Simplified Project Scope")
4040

41+
## Live demo
42+
43+
You can sign-up, sign-in, try SSO from any of these two client application demos:
44+
45+
* Website 1 : https://main.d3865c3iw67420.amplifyapp.com _(this could be __myapp1.yourcompany.com__)_
46+
* Website 2 : https://main.dannbzwwbj1rp.amplifyapp.com _(this could be __www.yoursubsidiary.com__ or __myapp2.yourcompany.com__)_
47+
48+
In a real use case, your user will only go to the broker from a client website or app, but for reference the Broker demo url itself is:
49+
50+
* https://master.d2i2y50c8btsz.amplifyapp.com _(this could be __login.yourcompany.com__)_
51+
52+
> __Demo Credentials__
53+
> For the main app you can sign-up to create your own account (_we don't use emails and phone numbers for anything else than the demo_)
54+
55+
See [client demo code repository](https://github.com/awslabs/aws-amplify-identity-broker-client)
56+
4157
## Documentation
4258

4359
### User Documentation
@@ -53,7 +69,7 @@ This is a simplified view of the scope of the project (what this repository is a
5369

5470
<details>
5571
<summary>Click to expand!</summary>
56-
72+
5773
This project is similar to the [Amazon Cognito hosted UI](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html) by many aspects. Here is the list of similarities and differences.
5874

5975
__Similarities__
@@ -89,7 +105,7 @@ The project architecture is the following:
89105

90106
![Projet Architecture Image](Documentation/Images/DeployedArchitecture.png "Projet Architecture")
91107

92-
See __[Developer Documentation](Documentation/DeveloperDocumentation.md)__ to see more detailed information on every component.
108+
See __[Developer Documentation](Documentation/DeveloperDocumentation.md)__ to see more detailed information on every component.
93109

94110
## Contributing
95111

0 commit comments

Comments
 (0)