Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST http://example.com/token HTTP/1.1
- User-Agent: Fiddler
- Content-Type: x-www-form-urlencoded
- Host: example.com
- Content-Length: 73
- grant_type=password&username=example@example.com&password=examplePassword
- HTTP/1.1 200 OK
- Cache-Control: no-cache
- Pragma: no-cache
- Content-Type: application/json;charset=UTF-8
- Expires: -1
- Server: Microsoft-IIS/10.0
- X-Powered-By: ASP.NET
- Date: Tue, 16 Aug 2016 12:04:39 GMT
- {
- "access_token": "xxxx",
- "token_type": "bearer",
- "expires_in": 17999,
- "refresh_token": "xxxx",
- ".issued": "Tue, 16 Aug 2016 12:04:38 GMT",
- ".expires": "Tue, 16 Aug 2016 17:04:38 GMT"
- }
- var result = await _signInManager.PasswordSignInAsync(model.UserName, model.Password, model.RememberMe, shouldLockout: false);
- public Task<SignInStatus> PasswordSignInAsync(string userName, string password, bool isPersistent, bool shouldLockout) on `SignInManager<,>` and make a web call across to the security server.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement