Skip to content

Commit 1d6f235

Browse files
authored
Update partner-transmit-security.md
1 parent 8bb20c8 commit 1d6f235

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/active-directory-b2c/partner-transmit-security.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A Transmit Detection and Response integration includes the following components:
4040

4141
The following architecture diagram illustrates the implementation described in the guide:
4242

43-
![Diagram of the Transmit and Azure AD B2C architecture](./media/partner-transmit-security/transmit-security-integration-diagram.png)
43+
[ ![Diagram of the Transmit and Azure AD B2C architecture.](./media/partner-transmit-security/transmit-security-integration-diagram.png) ](./media/partner-transmit-security/transmit-security-integration-diagram.png#lightbox)
4444

4545
1. The user signs-in with Azure AD B2C.
4646
2. A custom page initializes the Transmit SDK, which starts streaming device information to Transmit.
@@ -87,35 +87,35 @@ To integrating Transmit DRS into the B2C sign-in page, follow these steps:
8787

8888
1. Prepare a custom HTML file for your sign-in page based on the [sample templates](./customize-ui-with-html.md#sample-templates). Add the following script to load and initialize the Transmit SDK, and to obtain an action token. The returned action token should be stored in a hidden HTML element (`ts-drs-response` in this example).
8989

90-
```html
90+
```html
9191
<!-- Function that obtains an action token -->
9292
<script>
9393
function fill_token() {
94-
window.tsPlatform.drs.triggerActionEvent("login").then((actionResponse) => {
95-
let actionToken = actionResponse.actionToken;
96-
document.getElementById("ts-drs-response").value = actionToken;
97-
console.log(actionToken);
98-
});
94+
window.tsPlatform.drs.triggerActionEvent("login").then((actionResponse) => {
95+
let actionToken = actionResponse.actionToken;
96+
document.getElementById("ts-drs-response").value = actionToken;
97+
console.log(actionToken);
98+
});
9999
}
100100
</script>
101-
101+
102102
<!-- Loads DRS SDK -->
103103
<script src="https://platform-websdk.transmitsecurity.io/platform-websdk/latest/ts-platform-websdk.js" defer> </script>
104-
104+
105105
<!-- Upon page load, initializes DRS SDK and calls the fill_token function -->
106106
<script defer>
107107
window.onload = function() {
108-
if (window.tsPlatform) {
109-
// Client ID found in the app settings in Transmit Admin portal
110-
window.tsPlatform.initialize({ clientId: "[clientId]" });
111-
console.log("Transmit Security platform initialized");
112-
fill_token();
113-
} else {/
114-
console.error("Transmit Security platform failed to load");
115-
}
108+
if (window.tsPlatform) {
109+
// Client ID found in the app settings in Transmit Admin portal
110+
window.tsPlatform.initialize({ clientId: "[clientId]" });
111+
console.log("Transmit Security platform initialized");
112+
fill_token();
113+
} else {/
114+
console.error("Transmit Security platform failed to load");
115+
}
116116
};
117117
</script>
118-
```
118+
```
119119

120120
1. [Enable JavaScript and page layout versions in Azure AS B2C](./javascript-and-page-layout.md).
121121

0 commit comments

Comments
 (0)