asp.net mvc - Authenticate Users However I want -


i'm @ web api 2 project created "proof of concept". i'm trying see inject own code customer authentication. have internal auth/login service call determine if login credentials valid , user values (id, roles, etc) if valid.

i created project "individual accounts" authentication type i'm having hard time figuring out i'm going call service , map result identityuser (or iuser) object.

in generated applicationoauthprovider class there code passes username , password context object so:

public override async task grantresourceownercredentials(oauthgrantresourceownercredentialscontext context) {     using (usermanager<identityuser> usermanager = _usermanagerfactory())     {         identityuser user = await usermanager.findasync(context.username, context.password);     // ... 

how hook call?

you should this:


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -