Identity Server 3 login using Javascript without redirection

The Thinktecture Identity server has a good logon example through a JavaScript client at https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/Clients/JavaScriptImplicitClient

However, this specific example redirects the browser to the actual identity server URL ( https: // identityserverurl / login? Signin = guidhere ).

Is there a way to log in via JavaScript without redirecting the browser and use JavaScript / Ajax instead? The main purpose is to better control the input stream for a single-page application, which in some cases is also embedded in the HTML of another URL.

+5
source share
1 answer

try resource owner credential resource in such a way that you can use ur custome account. In this thread, all you need to do is hit the endpoints with a username, password, and as a result, u will receive marker data (u may also include an update token). Resource owner resource accounting should only be used for trusted client applications. e.g. dropdox wind 8 app

+3
source

All Articles