There Was a Problem in Getting the Ui Customization Please Try Again Cognito

AWS Cognito is a service provided by Amazon Web Services, and is bachelor in AppSheet Enterprise subscriptions. It allows you to set up your ain authentication source. You lot can provision users with explicit passwords or using ane of their existing social sign-in accounts, and you utilise Cognito to control secure access to your AppSheet apps. There are three reasons to exercise this:

  1. You would like to manage user access control at a calibration that goes beyond uncomplicated let lists.

  2. You lot want to be able to provision and manage the users, control countersign policy, and utilize other richer characteristics of an hallmark source.

  3. Y'all cannot use your corporate domain controller as an auth source, because your users come up from outside your corporate domain.

Using AWS Cognito requires that you set upward an AWS account. This is not part of the AppSheet service. This commodity explains the basics of setting up a Cognito service and configuring information technology to exist accessible from your AppSheet account.

Step 1: Open up the Cognito service in AWS

Become to http://aws.amazon.com, sign into the console, and navigate to Cognito by typing it into the Detect Services search bar.

Step 2: Configure a User Pool in your Cognito service

Click "Manage User Pools."

Then click "Create a user puddle."

In the next few steps, we volition create and configure a User Pool. The users in the  User Puddle will define the people who have access to your app.

Pace 2a: Give your app a name

You tin can create as many user pools as you need. Some app creators cull to make a user pool for each app. Others choose to apply a single user pool to multiple apps. Whatever your use case, choose a name that volition assistance you know what app(s) this user pool applies to. Then click "Step through settings."

Step 2b: Select sign in method

Select how you will let users to sign in. AppSheet recommends having users sign in via email. Since email addresses are unique, they work really well inside apps as unique identifiers. The email each user signs upwardly with will be accessible within your app using the USEREMAIL() formula.

You can require users to enter boosted information under "Which standard attributes do yous want to crave?" These standard attributes will exist visible in the Cognito User Pool. However, the standard attributes are not accessible from inside AppSheet apps.

Step 2c: Set up countersign requirements

On this screen y'all tin choose what requirements to apply to passwords. As well, y'all can cull whether users can sign themselves up.

If yous permit users to sign themselves up, then new users will see a sign up link the first time they access the app. Clicking the link will take them to a sign up page where they can create a user profile. This would allow anyone with a link to the app to sign upward.

If you merely let administrators to create users, then the sign up link will be hidden. An admin with access to the AWS Cognito account will need to add the user to the User Pool. This will send an automatic email to the user with their temporary countersign. The user volition be prompted to change their password on start login.

Pace 2d: Require user verification

Multi-factor authentication and SMS message are both optional.

AppSheet strongly recommends verifying the user information.

Step 2e: Email address customization

Yous tin can customize the e-mail address from which automated emails volition be sent. This is optional, but recommended past AWS as a all-time practice

Step 2f: Email message customization

You tin customize the automatic e-mail messages. These fields accept standard html tags. If you want to add together a line intermission, you can use the html tag: <br />

Footstep 2g: Tags

Tags are optional and not used for basic setups. For more than information about tags, delight see the Amazon help doc here.

Step 2h: Call up user's devices

Remembering a user's device is also optional. We recommend that you set this option to No. Once sign-in occurs, AppSheet remembers the user even if the app is closed or the device is restarted. Information technology is only if the user explicitly logs off AppSheet that the Cognito authentication is requested again. At this stage, you lot would unremarkably want to make certain the sign-in process occurs once again. If yous enquire Cognito to retrieve the user's devices, then Cognito will curt-circuit the sign-in process and automatically sign-in the existing user. This is unremarkably non the desired behavior.

Step 2i: Add an App Client

Click to "Add an app client." When you define an app "client" in Cognito, you are telling Cognito to expect AppSheet to interact with it to ask users to sign in.

Give your App Client a name and check the box to generate client clandestine. Then click "Create app customer." Cognito will create a Client Id and a Client Clandestine, which you tin can access after setup is complete. You will need this information when configuring your app back in AppSheet.

Information technology is important that you exercise not check the second pick ("Only allow ...."). This volition prevent the standard OAuth2.0 authentication process from succeeding.

Step 2j: Triggers

Triggers are an advanced option that allow you lot to further customize the authentication procedure. They are optional and not required for the bones setup.

Stride 2k: Review

Review your settings and click "Create puddle"

Step 2l: Set the callback URLs

Navigate to "App client settings" in the lefthand menu. These settings allow united states of america to tell Cognito how to respond when AppSheet interacts with it.

Re-create the following callback URLs and paste them in the Callback URL(s) field. They are case sensitive and must exist separated by a comma and a space.
https://www.appsheet.com/Business relationship/ELC, http://localhost:53519/Account/ELC

Please annotation the second callback url is not strictly required --- information technology is only necessary if you request AppSheet to debug your application at some indicate in the future.

Step 2m: Ascertain the Domain for your Cognito User Pool

Navigate to "Domain name" in the lefthand menu. Yous tin can assign a existent domain or a fake domain (eg: 'appsheettest' in the case below).

You volition need the full domain (e.g. https://{yourdomainname}/auth/{AWS region}/amazoncognito.com) when configuring your app back in AppSheet.

Step 3: Configure your AppSheet account

Now that yous have prepare your Cognito User Puddle, you need to annals it in your AppSheet account. Do so from the My Account > Integrations > Auth Domains pane.

Step 3a: Add a new auth domain

Click "+ Add Auth Domain," give your auth domain a name, and select AWS Cognito as the provider

Step 3b: Configure it with the Cognito information

The App Client ID and App Client Clandestine come up from the "App clients" page in the lefthand card of the Cognito settings dashboard. The Domain Endpoint comes from the "Domain name" page in the lefthand carte of the Cognito settings dashboard.

Step 4: Configure your app

Y'all tin can at present use this domain auth source in whatever of your apps. To connect your app to the auth source, go to the Security > Domain Hallmark page.

Toggle the "Require domain authentication" option on.

Then cull the Authentication domain source. The name you encounter here corresponds to what you setup in step 3a above.

Delight note that when AppSheet does not currently support the ability to select an Authentication domain or Authentication grouping when working with Cognito. These options can be left at their default values as seen above.

Step 5: Test it out

Navigate to the Users > Links page and catch the Browser Link. Open a new private session in your browser (incognito in Chrome), and paste the url. You will run into the option to authenticate with Cognito!

Additional UI Customization

Cognito allows you to customize the look and experience of the login page. Access these settings by going to the "UI customization" folio in the lefthand menu of the Cognito settings dashboard.

adamsraine1937.blogspot.com

Source: http://help.appsheet.com/en/articles/2424111-user-access-control-via-aws-cognito

0 Response to "There Was a Problem in Getting the Ui Customization Please Try Again Cognito"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel