(Example) Use Anonymous Authentication in a Process-Based App
This example shows how to use an anonymous form in a process-based app.
An anonymous form is an eForm that a runtime app user can submit with no authentication credentials. This is useful if you want people to use your process-based app with no user account.
Background and Setup
Good to Know
- This example uses the Customer Enquiry app from the AgilePoint NX
App Store.
For more information, refer to How to Get the App
- Customer Enquiry is an app that lets customers submit questions about a company, or its products or services.
For the use case in this example, you configure the Customer Enquiry Request form to use anonymous authentication so the customer can access the form without signing in.
- To enforce strict security, AgilePoint highly recommends you use anonymous forms for data entry only, and avoid using lookups that connect to your backend systems.
However, the decision whether to use lookups in anonymous forms is based on your business requirements. If your requires you to use a lookup to backend system, make that design choice as necessary.
- An application designer who configures an eForm to use anonymous authentication (used with anonymous forms) must have a role with the Allow Enabling Anonymous Access
access right.
The Allow Enabling Anonymous Access role lets the application designer create an anonymous form in App Builder at design time. It does not control the security for the anonymous form or the anonymous form user at runtime. The user credentials used for the anonymous authentication access token do not require this access right.
- As a security best practice, in your access token for anonymous forms, AgilePoint recommends using a user with minimum access rights. This is a user with the Users role with the default access rights.
- Optionally, in AgilePoint NX OnPremises and AgilePoint NX PrivateCloud, anonymous forms can use the AgilePoint Service Account for authentication if you select User System Account when you configure an access token for anonymous forms. However, this practice carries security risks. It is not recommended unless you have a specific business requirement for Service Account access, and the security risks are mitigated.
If you use the AgilePoint Service Account, the credentials are not stored in the database.
- If you have questions about the security impacts or best practices for anonymous forms, contact AgilePoint Professional Services.
Step 1: Add the Acces Right "Allow Enabling Anonymous Access" to the Global Application Designer Role
Add the Allow Enabling Anonymous Access access right to the Application Designer role.
Good to Know
- An application designer who configures an eForm to use anonymous authentication (used with anonymous forms) must have a role with the Allow Enabling Anonymous Access
access right.
The Allow Enabling Anonymous Access role lets the application designer create an anonymous form in App Builder at design time. It does not control the security for the anonymous form or the anonymous form user at runtime. The user credentials used for the anonymous authentication access token do not require this access right.
How to Start
- In the Manage Center, click Access Control > Roles.
- On the Roles screen, click Expand on the Application Designer role.
Procedure
- On the Application Designer role, in the ACCESS RIGHTS section, click Edit Role .
- Click the Application Builder tab.
- On the Application Builder tab, select Allow Enabling Anonymous Access.
- Click Update.
Step 3: Create an Access Token for Anonymous Authentication
Configure an access token to connect to an anonymous form. This type of access token provides credentials that let non-authenticated users complete an eForm in AgilePoint NX..
Prerequisites
- Account credentials for anonymous authentication. This is the account the eForm uses to connect to AgilePoint NX, and get and submit data in the application. You can use an
AgilePoint NX account
or an account in
Active Directory.
If you do not use any of these authentication methods in your organization, you can create an AgilePoint NX account to use for anonymous authentication.
Active Directory authentication is not available for AgilePoint NX OnDemand.
- As a security best practice, in your access token for anonymous forms, AgilePoint recommends using a user with minimum access rights. This is a user with the Users role with the default access rights.
- An application designer who configures an eForm to use anonymous authentication (used with anonymous forms) must have a role with the Allow Enabling Anonymous Access
access right.
The Allow Enabling Anonymous Access role lets the application designer create an anonymous form in App Builder at design time. It does not control the security for the anonymous form or the anonymous form user at runtime. The user credentials used for the anonymous authentication access token do not require this access right.
Good to Know
- Optionally, in AgilePoint NX OnPremises and AgilePoint NX PrivateCloud, anonymous forms can use the AgilePoint Service Account for authentication if you select User System Account when you configure an access token for anonymous forms. However, this practice carries security risks. It is not recommended unless you have a specific business requirement for Service Account access, and the security risks are mitigated.
If you use the AgilePoint Service Account, the credentials are not stored in the database.
- If you have questions about the security impacts or best practices for anonymous forms, contact AgilePoint Professional Services.
- This example shows how to create a global access token for anonymous forms. You can also create an application level access token for anonymous forms.
How to Start
- Click Manage .
- Click App Builder > Global Access Tokens.
- On the Global Access Tokens screen, click Add Token .
- On the Add Global Access Tokens screen, select Anonymous Forms .
- Click Next.
Procedure
- On the Add Global Access Tokens screen, in the Token Name field, enter Anonymous Customer Request.
- In the Domain field, enter nxone.
You can find the domain name in the Portal Instance URL field on Tenant Settings.
For more information, refer to Find your Portal Instance URL.
- In the User Name field, enter ExternalUser.
- In the Password field, enter the password of the user.
- To make sure the specified credentials are correct, click Validate .
- Click Done.
Step 4: Configure Anonymous Access for an eForm
To configure the anonymous access for an eForm in a process-based app, do the procedure in this topic.
Prerequisites
- An application designer who configures an eForm to use anonymous authentication (used with anonymous forms) must have a role with the Allow Enabling Anonymous Access
access right.
The Allow Enabling Anonymous Access role lets the application designer create an anonymous form in App Builder at design time. It does not control the security for the anonymous form or the anonymous form user at runtime. The user credentials used for the anonymous authentication access token do not require this access right.
How to Start
- Click Build Apps .
- On the Application Explorer screen, in the My Applications pane, click Customer Enquiry > Processes > Customer Enquiry > Process Model > Customer Enquiry.
Procedure
- On the Process Builder screen, in the Customer Enquiry process model, double-click on the Customer Enquiry form.
- On the Start Task Configuration screen, select the Customer Enquiry form.
- Click Advanced > Anonymous Access
- On the Anonymous eForm Access screen, click the Anonymous Access tab.
- On the Anonymous Access tab, in the Anonymous Access Name field, enter Anonymous Customer Inquiry.
- In the Access Token list, select Anonymous Customer Request (Global).
- Click the URL tab.
- In the Base URL field, enter https://mysite.nxone.com.
This URL is an example. You can find the actual value in the Portal Instance URL field on Tenant Settings.
For more information, refer to Find your Portal Instance URL.
- The Parameter and Value fields show the default value Process
and Customer Enquiry.
You can not change these values.
You can specify your own query string parameters and values. Any custom values you specify are used in the URL for the anonymous form.
- Click Generate.
- On the Access Token screen, click Save.
You can use this URL to open and complete an eForm with no authentication.
The Anonymous eForm Access screen shows.
Step 5: (Optional) Open Your eForm as an Anonymous User
To open your eForm as an anonymous user, do the procedure in this topic.
Procedure
- On the Anonymous eForm Access screen, click View.
- On the Access Token screen, click Copy To ClipBoard.
- Click Cancel.
- On the Anonymous eForm Access screen, click Finish.
- Sign out of AgilePoint NX Portal.
- In your web browser, paste the URL for your eForm.
The Customer Enquiry Request Form opens with no authentication.
- Complete the fields on the eForm.
- Click Submit
Step 6: (Optional) Verify the records in Your eForm
To verify the records that you submitted in an anonymous form, do the procedure in this topic.
How to Start
- On the AgilePoint NX Portal, click Work Center .
- On the Work Center screen, click Inbox .
Procedure
How to Get the App
This example is based on the Customer Enquiry app from the AgilePoint NX App Store. Use this procedure to get the app.
Prerequisites
- AgilePoint NX OnDemand (public cloud), or AgilePoint NX PrivateCloud or AgilePoint NX OnPremises v7.0 or higher.
Good to Know
- This procedure is optional. It is provided so you can test the example with an out-of-the-box app.
- This is part of the Background and Setup procedures, but many users preferred this step to appear after the example, not before it.
Get the App
- Click App Store .
- In the CATEGORY section, click Marketing.
- Click the Customer Enquiry app.
- On the Customer Enquiry screen, click Add.
- On the Trust App screen, click Trust it.
- Click Return to site.