Merge pull request #185 from diwu86/sf_scope
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");
|
LastName = TryGetValue(user, "last_name");
|
||||||
TimeZone = TryGetValue(user, "timezone");
|
TimeZone = TryGetValue(user, "timezone");
|
||||||
Active = TryGetValue(user, "active");
|
Active = TryGetValue(user, "active");
|
||||||
|
MobilePhone = TryGetValue(user, "mobile_phone");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -121,6 +122,11 @@ namespace Owin.Security.Providers.Salesforce
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Active { get; private set; }
|
public string Active { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the user's mobile phone number
|
||||||
|
/// </summary>
|
||||||
|
public string MobilePhone { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the <see cref="ClaimsIdentity"/> representing the user
|
/// Gets the <see cref="ClaimsIdentity"/> representing the user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ namespace Owin.Security.Providers.Salesforce
|
|||||||
Caption = Constants.DefaultAuthenticationType;
|
Caption = Constants.DefaultAuthenticationType;
|
||||||
CallbackPath = new PathString("/signin-salesforce");
|
CallbackPath = new PathString("/signin-salesforce");
|
||||||
AuthenticationMode = AuthenticationMode.Passive;
|
AuthenticationMode = AuthenticationMode.Passive;
|
||||||
Scope = new List<string>();
|
Scope = new List<string> { "id" };
|
||||||
BackchannelTimeout = TimeSpan.FromSeconds(60);
|
BackchannelTimeout = TimeSpan.FromSeconds(60);
|
||||||
Endpoints = new SalesforceAuthenticationEndpoints
|
Endpoints = new SalesforceAuthenticationEndpoints
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user