Merge pull request #185 from diwu86/sf_scope

add id to scope and mobile_phone to context
This commit is contained in:
Tommy Parnell
2016-10-27 08:16:19 -04:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -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>

View File

@@ -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
{