Last active
March 23, 2016 15:21
-
-
Save biganth/c3f393e0cbb22a5c86fa to your computer and use it in GitHub Desktop.
Web API2 external login
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
function Login() { | |
jQuery.support.cors = true; | |
$.ajax({ | |
type: 'GET', | |
url: 'api/Account/ExternalLogins?returnUrl=%2F&generateState=true', | |
dataType: 'JSON', | |
success: function (data) { | |
var url = (data[0].Url); | |
window.open(url, '_self', false); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment