fixe oauth2 tiers

This commit is contained in:
2016-06-04 21:00:33 +02:00
parent edcac5f332
commit adfaa1a587

View File

@ -196,13 +196,9 @@ namespace Yavsc.Controllers
if (!User.Identities.Any(identity => identity.IsAuthenticated))
{
_logger.LogWarning("new ChallengeResult");
return new ChallengeResult(new AuthenticationProperties
{
RedirectUri = Url.Action(nameof(Authorize), new
{
request_id = request.GetUniqueIdentifier()
})
RedirectUri = request.BuildRedirectUrl()
});
}
// Note: ASOS automatically ensures that an application corresponds to the client_id specified