You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
Recieved following error when connecting from client using IMplicity: "has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."
public virtual Task PreAuthenticateAsync(SignInMessage message)
{
var result = new AuthenticateResult("bob", "bob");
return Task.FromResult(result);
//return Task.FromResult(null);
}
The text was updated successfully, but these errors were encountered:
That's your bug then -- the first param to the AuthenticateResult is the subject identifier. "bob" is just the username. That user's subject value is "88421113".
this is what I have customized and actually it did not work without those additional claim types or the default InMemorUser construct. it worked without PreAuthenticateSync:
new InMemoryUser{Subject = "bob", Username = "bob", Password = "bob",
Claims = new Claim[]
{
new Claim(ClaimTypes.Name, "bob"),
new Claim(ClaimTypes.Upn, "[email protected]"),
new Claim(ClaimTypes.Email, "[email protected]"),
new Claim(ClaimTypes.GivenName, "Bob"),
new Claim(ClaimTypes.Expiration, UserService.ConvertDate(DateTime.Now.AddHours(1))),
new Claim(ClaimTypes.Surname, "Smith"),
}
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Recieved following error when connecting from client using IMplicity: "has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."
public virtual Task PreAuthenticateAsync(SignInMessage message)
{
var result = new AuthenticateResult("bob", "bob");
return Task.FromResult(result);
//return Task.FromResult(null);
}
The text was updated successfully, but these errors were encountered: