Last active
November 12, 2021 22:09
-
-
Save thivi/4a865b8674f5160da0ff5eb2c59182fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function () { | |
auth.on("sign-in", function () { | |
document.getElementById("unauthenticated").style.display = "none"; | |
document.getElementById("authenticated").style.display = "block"; | |
}); | |
auth.initialize({ | |
signInRedirectURL: "http://localhost:5000", | |
signOutRedirectURL: "http://localhost:5000", | |
clientID: "<client-id>", | |
serverOrigin: "https://api.asgardeo.io/t/<tenant>", | |
scope: ["openid", "profile"] | |
}); | |
auth.signIn({ callOnlyOnRedirect: true }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment