OAuth OK!

This commit is contained in:
Paul Schneider 2016-06-12 01:32:51 +02:00
commit 567e4a6635
382 changed files with 52478 additions and 7572 deletions

View file

@ -3,8 +3,6 @@ using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.WebEncoders;
using System;
using System.IO;
using Yavsc.Auth;
namespace OAuth.AspNet.AuthServer

View file

@ -1,4 +1,3 @@
using Microsoft.AspNet.Authentication;
using Microsoft.AspNet.Http;
namespace OAuth.AspNet.AuthServer

View file

@ -62,6 +62,10 @@ namespace OAuth.AspNet.AuthServer
Parameters = parameters,
};
}
else
{
throw new ArgumentException("No grant type found in the request");
}
}
/// <summary>

View file

@ -33,6 +33,7 @@ namespace Yavsc.Auth
Scope.Add("openid");
Scope.Add("profile");
Scope.Add("email");
}
/// <summary>
@ -40,5 +41,6 @@ namespace Yavsc.Auth
/// </summary>
public string AccessType { get; set; }
}
}