<div id="webchat" role="main"></div> | |
<script src="jso.js"></script> | |
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> | |
{% if user %} | |
<script> | |
var config = { | |
client_id: "b31-aced-b61e18a4f68a", //The client id that was generated when registering the bot app in AD. | |
redirect_uri: "<portal_url>", //Your portal home page url | |
authorization: "<portal_url>/_services/auth/authorize", | |
debug: false //set to "true" for any troubleshooting. This will print additional logs on the console. | |
}; | |
let client = new jso.JSO(config); | |
client.callback(); | |
var checkedToken = client.checkToken(); | |
var accessToken; | |
var opts = {}; | |
client.getToken(opts) | |
.then(function (token) { | |
accessToken = token.token; | |
}); | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment