forked from Web3Auth/web3auth-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rn-docs-update
- Loading branch information
Showing
9 changed files
with
132 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Create a AWS Cognito **Verifier** from the **Custom Authentication** tab of your Web3Auth Project. | ||
|
||
- Click on the `Custom Authentication` tab of your [Web3Auth Project](/dashboard-setup/projects-and-analytics#create-a-new-project). | ||
- Click on the `Create Verifier` button. | ||
- Enter a name of your choice for the verifier identifier. `eg. w3a-cognito-demo` | ||
- Select `Custom Providers` from **Choose a Login Provider** section. | ||
![Verifier Modal on Web3Auth Dashboard](/images/dashboard/create-verifier-custom-jwt.png) | ||
- **JWKS Endpoint**: Enter `https://cognito-idp.{REGION}.amazonaws.com/{USER_POOL_ID}/.well-known/jwks.json` as the JWKS endpoint for the Cognito. | ||
- Now you have the option to paste a sample idToken(JWT) to get the fields for the JWT validation. This step is optional, but if you have a sample JWT | ||
you can paste it here to get the fields for the JWT validation. You can also skip this step and fill in the fields manually. | ||
- The following are the JWT validation fields needed for the Cognito JWT validation: | ||
|
||
- Type `iss` as a field and `https://cognito-idp.{REGION}.amazonaws.com/{USER_POOL_ID}` as a value. | ||
- Next, type `aud` as a field and `APP_CLIENT_ID` as a value. | ||
|
||
_**Note: Replace the `REGION`, `USER_POOL_ID` and `APP_CLIENT_ID` with your Cognito specific details.**_ | ||
|
||
- Next, Select `Sub`, `Email` or a `Custom` value from the dropdown for the **JWT Verifier ID**. This is the field that will be used as the verifier | ||
ID for the user, and it has to be unique for each user. | ||
- Finally, Click on the `Create` button to create your verifier. | ||
|
||
![Verifier Modal on Web3Auth Dashboard](/images/dashboard/create-verifier-custom-jwt-filled.png) | ||
|
||
It may take up to 10 minutes to deploy the verifier on _sapphire_devnet_. You'll receive an email once it's complete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Create a Firebase **Verifier** from the **Custom Authentication** tab of your Web3Auth Project. | ||
|
||
- Click on the `Custom Authentication` tab of your [Web3Auth Project](/dashboard-setup/projects-and-analytics#create-a-new-project). | ||
- Click on the `Create Verifier` button. | ||
- Enter a name of your choice for the verifier identifier. `eg. w3a-firebase-demo` | ||
- Select `Custom Providers` from **Choose a Login Provider** section. | ||
![Verifier Modal on Web3Auth Dashboard](/images/dashboard/create-verifier-custom-jwt.png) | ||
- **JWKS Endpoint**: Enter `https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com` as the JWKS endpoint for the | ||
Firebase. | ||
- Now you have the option to paste a sample idToken(JWT) to get the fields for the JWT validation. This step is optional, but if you have a sample JWT | ||
you can paste it here to get the fields for the JWT validation. You can also skip this step and fill in the fields manually. | ||
- The following are the JWT validation fields needed for the Firebase JWT validation: | ||
|
||
- Type `iss` as a field and `https://securetoken.google.com/FIREBASE-PROJECT-ID` as a value. | ||
- Next, type `aud` as a field and `FIREBASE-PROJECT-ID` as a value. | ||
|
||
**_Note: Replace the `FIREBASE-PROJECT-ID` with your Firebase Project ID._** | ||
|
||
- Next, Select `Sub`, `Email` or a `Custom` value from the dropdown for the **JWT Verifier ID**. This is the field that will be used as the verifier | ||
ID for the user, and it has to be unique for each user. | ||
- Finally, Click on the `Create` button to create your verifier. | ||
|
||
![Verifier Modal on Web3Auth Dashboard](/images/dashboard/create-verifier-custom-jwt-filled.png) | ||
|
||
It may take up to 10 minutes to deploy the verifier on _sapphire_devnet_. You'll receive an email once it's complete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
- Create a Project from the **Plug and Play** Section of the [Web3Auth Developer Dashboard](https://dashboard.web3auth.io/). | ||
- Create a Project from the **Project** Section of the [Web3Auth Developer Dashboard](https://dashboard.web3auth.io/). | ||
|
||
![Plug n Play Project Creation on Web3Auth Dashboard](/content-hub/guides/set-up-web3auth-dashboard/plugnplay-project.png) | ||
![Plug n Play Project Creation on Web3Auth Dashboard](/images/dashboard/create-project-name.png) | ||
|
||
- Enter your desired Project name | ||
- Select the Web3Auth Network as `testnet`. We recommend creating a project in tesnet network during development. And while moving to a production | ||
environment, make sure to convert your project to `mainnet`, `aqua`, or `cyan` network, otherwise you'll end up losing users and keys. | ||
- Select the blockchain(s) you'll be building this project on. For interoperability with Torus Wallet, you've an option of allowing the user's | ||
private key to be used in other applications using Torus Wallet. We currently have this option across `EVM`, `Solana` and `Casper` blockchains. | ||
- Finally, once you create the project, you've the option to whitelist your URLs for the project. **Please whitelist the domains where your project | ||
will be hosted.** | ||
- Enter your desired **Project name**. | ||
- Select the **Product** you want to use. For this guide, we'll be using the **Plug n Play** product. | ||
- Select the **Platform type** you want to use. For this guide, we'll be using the **Web Application** as the platform. | ||
- Select the Web3Auth Network as `Sapphire Devnet`. We recommend creating a project in the `sapphire_devnet` or `tesnet` network during development. | ||
While moving to a production environment, make sure to convert your project to `sapphire_mainnet` or any of the legacy mainnet network `mainnet`, | ||
`aqua`, or `cyan` network. Otherwise, you'll end up losing users and keys. | ||
- Select the blockchain(s) you'll be building this project on. For interoperability with Torus Wallets, you have the option of allowing the user's | ||
private key to be used in other applications using Torus Wallets ([EVM](https://app.tor.us), [Solana](https://solana.tor.us), | ||
[XRPL](https://xrpl.tor.us) & [Casper](https://casper.tor.us)). | ||
- Finally, once you create the project, you have the option to whitelist your URLs for the project. **Please whitelist the domains where your | ||
project will be hosted.** | ||
|
||
![Plug n Play Project - Whitelist](/content-hub/guides/set-up-web3auth-dashboard/plugnplay-whitelist.png) | ||
![Plug n Play Project - Whitelist](/images/dashboard/project-whitelist.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters