commentaire nul
This commit is contained in:
parent
cac49facaa
commit
46f5c107b8
10 changed files with 545 additions and 16 deletions
24
testOauthClient/YavscOAuthOptions.cs
Normal file
24
testOauthClient/YavscOAuthOptions.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
|
||||
using Microsoft.AspNet.Authentication.OAuth;
|
||||
using Microsoft.AspNet.Http;
|
||||
|
||||
public class YavscOAuthOptions : OAuthOptions {
|
||||
public YavscOAuthOptions()
|
||||
{
|
||||
AuthenticationScheme = "yavsc";
|
||||
DisplayName = AuthenticationScheme;
|
||||
CallbackPath = new PathString("/signin-yavsc");
|
||||
AuthorizationEndpoint = "http://dev.pschneider.fr/connect/authorize";
|
||||
TokenEndpoint = "http://dev.pschneider.fr/api/token/get";
|
||||
UserInformationEndpoint = "http://dev.pschneider.fr/api/userinfo";
|
||||
Scope.Add("openid");
|
||||
Scope.Add("profile");
|
||||
Scope.Add("email");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// access_type. Set to 'offline' to request a refresh token.
|
||||
/// </summary>
|
||||
public string AccessType { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue