OAuth OK!
This commit is contained in:
parent
494a840f70
commit
567e4a6635
382 changed files with 52478 additions and 7572 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using Microsoft.AspNet.Authentication;
|
||||
using Microsoft.AspNet.Http;
|
||||
|
||||
namespace OAuth.AspNet.AuthServer
|
||||
|
|
|
|||
|
|
@ -62,6 +62,10 @@ namespace OAuth.AspNet.AuthServer
|
|||
Parameters = parameters,
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException("No grant type found in the request");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue