Skip to content

Commit 3d22d90

Browse files
Merge pull request #9643 from mendix/kv-SAP-XSUAA
XSUAA Connector: Page/microflow URL info update
2 parents dbf404c + e24b1ac commit 3d22d90

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

content/en/docs/appstore/use-content/platform-supported-content/modules/sap/sap-xsuaa-connector.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ By default, the Mendix login page will not allow the user to enter their SSO cre
125125
* Bypass the Mendix login page altogether and just display the XSUAA login page
126126

127127
{{% alert color="info" %}}
128-
If you are using the [Deep Link](/appstore/modules/deep-link/) module, you will also need to set the **LoginLocation** constant to `/xsauaalogin/login?ret=`.
128+
To configure a page/microflow URL, follow the steps mentioned in the subsections below. If you are using the Deep Link module, make sure the **LoginLocation** constant is set to `/xsauaalogin/login?ret=`.
129129
{{% /alert %}}
130130

131131
#### Adding the SSO Login Button to the Login Page {#adding}
@@ -158,7 +158,18 @@ If login.html does not support XSUAA then you need to add the SSO login button t
158158
</a>
159159
```
160160

161-
7. Deploy and run your app. The XSUAA login button will look like this:
161+
7. Add the below custom script to the **login.html**.
162+
163+
```html
164+
<script>
165+
document.getElementById("ssoButton").addEventListener("click", function (event) {
166+
event.preventDefault();
167+
window.location.href = '/xsauaalogin/login?ret=' + encodeURIComponent(window.location.search + window.location.hash);
168+
});
169+
</script>
170+
```
171+
172+
8. Deploy and run your app. The XSUAA login button will look like this:
162173

163174
{{< figure src="/attachments/appstore/platform-supported-content/modules/sap-xsuaa-connector/sso-login-screen.png" class="no-border" >}}
164175

@@ -182,7 +193,7 @@ To accomplish this, follow these steps:
182193
<html>
183194
<head>
184195
<script>
185-
window.location.assign("/xsauaalogin/")
196+
self.location = '/xsauaalogin/login?ret=' + encodeURIComponent(window.location.search + window.location.hash);
186197
</script>
187198
</head>
188199
</html>

0 commit comments

Comments
 (0)