Skip to content

Commit ba81943

Browse files
Merge pull request #221 from AdobeDocs/enterprise_web_app
Enterprise web app fixes
2 parents fbdc94b + 331556a commit ba81943

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

src/pages/guides/authentication/AdminAuthentication/implementation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Note: You must be an Adobe Technology Partner Program (TPP) partner to use the E
5252

5353
The consent workflow starts when the customer admin visits the partner app and clicks on the 'Connect with Adobe' button. You must construct the consent URL and embed it into the 'Connect with Adobe' button. To construct the consent URL, follow these steps:
5454

55-
1. The Adobe IMS consent endpoint for the Enterprise Web App credential is https://id.adobe.com/consent.
55+
1. The Adobe IMS consent endpoint for the Enterprise Web App credential is [https://id.adobe.com/consent](https://id.adobe.com/consent).
5656
2. Append these query parameters to the consent URL: `client_id`, `scope`, `state`, `nonce`, and optionally `redirect_uri`.
5757
1. Copy the value of `client_id` and `scope` from the Enterprise Web App credential overview page.
58-
2. Generate cryptographically secure random values for the `state` and `nonce` parameters. Store these securely in the user’s session on your backend. Furthermore, to retrieve the user's session later, store a session identifier (such as a secure cookie or encrypted local storage value) to tie the consent response to that user.
58+
2. Generate cryptographically secure random values for the `state` and `nonce` parameters. Store these securely in the user’s session on your backend. Furthermore, to retrieve the user's session later, store the session identifier in the user's browser (such as a secure cookie or encrypted local storage).
5959
3. Optionally specify a `redirect_uri` in the consent URL to redirect the admin to a URL different from your default redirect URI. The supplied URL must match one of the redirect URL patterns configured in the credential.
6060
3. Embed the consent URL in the 'Connect with Adobe' button for the admin to click.
6161

@@ -65,7 +65,7 @@ Once the admin provides consent and is redirected back to your app, a few query
6565

6666
1. The `admin_consent` parameter is set to `true` if the admin provided consent to your application, and `false` if the admin cancelled the workflow.
6767

68-
The `admin_consent` parameter will not be present in the redirect in cases of error. Instead the `error` parameter will be present and the error code will be supplied as the value. Look at the [API reference](ims.md#error-codes) to view all error codes and what they mean.
68+
The `admin_consent` parameter will not be present in the redirect in cases of error. Instead the `error` parameter will be present and the error code will be supplied as the value. Look at the [API reference](ims.md#error-codes) to view all error codes and what they mean.
6969

7070
2. The `state` parameter is set to the value you supplied in the consent URL. The parameter is used to prevent Cross-site Request Forgery (CSRF) attacks. To validate it:
7171
1. Send the `state` parameter and the user's session ID (stored in browser cookies or local storage) to your backend server.

src/pages/guides/authentication/AdminAuthentication/ims.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Following is an API reference for Adobe Identity Management Services (IMS) APIs.
44

5-
## Consent URL parameters
5+
## Consent URL
66

77
### Base URL
88

src/pages/guides/authentication/AdminAuthentication/samples.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,23 @@ if __name__ == "__main__":
212212
213213
### Add these dependencies to your pom.xml
214214
215+
216+
```xml
217+
<dependencies>
218+
<dependency>
219+
<groupId>com.auth0</groupId>
220+
<artifactId>java-jwt</artifactId>
221+
<version>4.4.0</version>
222+
</dependency>
223+
<dependency>
224+
<groupId>com.auth0</groupId>
225+
<artifactId>jwks-rsa</artifactId>
226+
<version>0.22.0</version>
227+
</dependency>
228+
</dependencies>
229+
230+
```
231+
215232
### Verify the redirect
216233
217234
```java

0 commit comments

Comments
 (0)