fixe oauth2 tiers

This commit is contained in:
Paul Schneider 2016-06-04 21:00:33 +02:00
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