Authentication
The authentication process describe how to add a link to your website to Securitize D and how to retrieve the information provided after the login process and use it on Connect API
Last updated
https://id.securitize.io/#/authorize?issuerId=[CLIENT_ID]&scope=[SCOPE]&redirecturl=[REDIRECT_URL]https://id.securitize.io/#/authorize?issuerId=123e4567-e89b&scope=info%20details%20verification&redirecturl=https://dashboard.securitize.io/authorization<body>
<div id="SecuritizeID">
</div>
</body>function showSecuritizeIDLogInLogo() {
var baseUrl = "STRING";
var issuerID = "STRING";
var scope = "info details verification";
var redirecturl = "URL"
var securitizeID = document.getElementById("SecuritizeID");
var link = document.createElement("a");
var logo = document.createElement("img");
var href = baseUrl + "#/authorize" + "?issuerId="
+ issuerID + "&scope=" + scope + "&redirecturl=" + redirecturl;
logo.src = "./images/securitizeID.png";
link.href = href;
link.appendChild(logo);
securitizeID.appendChild(link);
}https://REDICT_URL?code=40cba031-8fd2-4a88-89ff-36e07e5e060b&country=US&authorized=true function captureTOKEN() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const code = urlParams.get("code");
const country = urlParams.get("country");
const authorized = urlParams.get("authorized");
console.log(code, country, authorized);
if (authorized == "true") {
// User has signed-up and has a SecuritizeID
}
}