add id to scope and mobile_phone to context
This commit is contained in:
@@ -40,6 +40,7 @@ namespace Owin.Security.Providers.Salesforce
|
||||
LastName = TryGetValue(user, "last_name");
|
||||
TimeZone = TryGetValue(user, "timezone");
|
||||
Active = TryGetValue(user, "active");
|
||||
MobilePhone = TryGetValue(user, "mobile_phone");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -121,6 +122,11 @@ namespace Owin.Security.Providers.Salesforce
|
||||
/// </summary>
|
||||
public string Active { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user's mobile phone number
|
||||
/// </summary>
|
||||
public string MobilePhone { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="ClaimsIdentity"/> representing the user
|
||||
/// </summary>
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace Owin.Security.Providers.Salesforce
|
||||
Caption = Constants.DefaultAuthenticationType;
|
||||
CallbackPath = new PathString("/signin-salesforce");
|
||||
AuthenticationMode = AuthenticationMode.Passive;
|
||||
Scope = new List<string>();
|
||||
Scope = new List<string> { "id" };
|
||||
BackchannelTimeout = TimeSpan.FromSeconds(60);
|
||||
Endpoints = new SalesforceAuthenticationEndpoints
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user