access-token

SignInAsync vs AuthenticateAsync

情到浓时终转凉″ 提交于 2020-04-08 04:21:00
问题 I finally got my login-method with JWT Token Authentication working. Here I'm calling await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, ClaimsPrincipalFactory.CreatePrincipal(claims), authProps); I also called await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); In the example I read that I only need the SignInAsync . So I tested it and removed AuthenticateAsync . But still, User.Identity.IsAuthenticated returns true . Is it

SignInAsync vs AuthenticateAsync

风流意气都作罢 提交于 2020-04-08 04:13:44
问题 I finally got my login-method with JWT Token Authentication working. Here I'm calling await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, ClaimsPrincipalFactory.CreatePrincipal(claims), authProps); I also called await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); In the example I read that I only need the SignInAsync . So I tested it and removed AuthenticateAsync . But still, User.Identity.IsAuthenticated returns true . Is it

SignInAsync vs AuthenticateAsync

為{幸葍}努か 提交于 2020-04-08 04:10:30
问题 I finally got my login-method with JWT Token Authentication working. Here I'm calling await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, ClaimsPrincipalFactory.CreatePrincipal(claims), authProps); I also called await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); In the example I read that I only need the SignInAsync . So I tested it and removed AuthenticateAsync . But still, User.Identity.IsAuthenticated returns true . Is it

SignInAsync vs AuthenticateAsync

╄→гoц情女王★ 提交于 2020-04-08 04:10:05
问题 I finally got my login-method with JWT Token Authentication working. Here I'm calling await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, ClaimsPrincipalFactory.CreatePrincipal(claims), authProps); I also called await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); In the example I read that I only need the SignInAsync . So I tested it and removed AuthenticateAsync . But still, User.Identity.IsAuthenticated returns true . Is it

SignInAsync vs AuthenticateAsync

末鹿安然 提交于 2020-04-08 04:08:18
问题 I finally got my login-method with JWT Token Authentication working. Here I'm calling await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, ClaimsPrincipalFactory.CreatePrincipal(claims), authProps); I also called await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); In the example I read that I only need the SignInAsync . So I tested it and removed AuthenticateAsync . But still, User.Identity.IsAuthenticated returns true . Is it

getting cognito acces_token with wso2 esb

ε祈祈猫儿з 提交于 2020-03-25 16:46:30
问题 I'm trying to get access token through AWS Cognito with client credentials but getting something else. I'm doing this in wso2 Enterprise integrator 6.1.0 <payloadFactory media-type="xml"> <format> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"> <soapenv:Header> <Content-Type xmlns="">$1</Content-Type> <Authorization xmlns="">$2</Authorization> </soapenv:Header> <soapenv:Body/> </soapenv:Envelope> </format>

getting cognito acces_token with wso2 esb

青春壹個敷衍的年華 提交于 2020-03-25 16:46:16
问题 I'm trying to get access token through AWS Cognito with client credentials but getting something else. I'm doing this in wso2 Enterprise integrator 6.1.0 <payloadFactory media-type="xml"> <format> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"> <soapenv:Header> <Content-Type xmlns="">$1</Content-Type> <Authorization xmlns="">$2</Authorization> </soapenv:Header> <soapenv:Body/> </soapenv:Envelope> </format>

Azure AD Custom Claims in JWT

牧云@^-^@ 提交于 2020-03-24 03:28:53
问题 I have an Azure AD app and I am trying to add custom claims to a JWT. I'm using the claims mapping feature in Azure for my specific app, and updated the app manifest in the Azure Portal to include the optional claims. However, when I log in and view the decoded access token, the claim is not present in the token. I haven't found much documentation relating to using extension attributes as claims, but from what I've found it should follow the same patterns, but it is not working as expected.

ReactJS - Silently renew token with iframe

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-21 20:26:30
问题 I'm trying to wrap my had around authentication processes, and implement, every 60 minutes, a silent token renew in my React app, like so: Create some watcher function, which checks the expiration time of the access token. If the token is about to expire, it is time to renew it. Render an iframe tag, the src should be the same URL which you are using for redirecting to the Auth server, with one difference: change the return URL to a static file, let's call it redirect.html. The server should

IdentityServer4 - Refresh Tokens Hybrid Flow - Cookies and storage

故事扮演 提交于 2020-02-07 02:28:45
问题 I've followed Quickstart Hybrid Flow here but I need some help and advices about saving tokens after using refresh token. If I say true, the option SaveTokens allows to save tokens in cookies. Firstly, is it a good idea to store access and refresh tokens in a cookie (concerns about security) ? Other question, I retrieve correctly refresh token via the code var refreshToken = await HttpContext.GetTokenAsync("refresh_token"); but now, when I get the new access token, how can I store it (no