claims based identity - What's best practices to use ThinkTecture IdentityServer from a dekstop app like WPF? -


does know of sample application demonstrating best practices use thinktecture identityserver v2 desktop application wpf?

is using httpclient call accountcontroller's signin operation preferred way?

i'm trying this, response html page webapplication redirected to sign in.

    private async task loginrequest(string username, string password)     {         httpclient client = new httpclient();         client.defaultrequestheaders.add("accept", "application/json");         client.baseaddress = new uri(@"https://<server-name>/idsrv-sample/");         var logindata = new signinmodel { username = username, password = password, issigninrequest = true };                     var signinresponse = await client.putasjsonasync("account/signin", logindata);         var result = await signinresponse.content.readasstringasync();         messagebox.show(result);  // identityserver login page     } 

not sure mean "best practices" - identityserver supports oauth2 authorization tokens backend:

http://leastprivilege.com/2012/11/01/oauth2-in-thinktecture-identityserver-v2-resource-owner-password-flow/

see here: https://github.com/thinktecture/thinktecture.identityserver.v2/wiki


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -