Compare commits

...

4 Commits

Author SHA1 Message Date
Tommy Parnell
2567036747 bump version 2016-10-27 08:17:57 -04:00
Tommy Parnell
2e5561befb Merge pull request #185 from diwu86/sf_scope
add id to scope and mobile_phone to context
2016-10-27 08:16:19 -04:00
Di Wu
202f215c19 add id to scope and mobile_phone to context 2016-10-26 16:48:11 -04:00
Tommy Parnell
28b4edbde9 fix readme (#181) 2016-10-06 16:07:25 -04:00
4 changed files with 9 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ A big thanks goes out to all these contributors without whom this would not have
* Ben Foster (https://github.com/benfoster)
* Jonathan Peterson (https://github.com/eonasdan)
For most accurate and up to date list of contributors please see https://github.com/RockstarLabs/OwinOAuthProviders/graphs/contributors
For most accurate and up to date list of contributors please see https://github.com/TerribleDev/OwinOAuthProviders/graphs/contributors
## License

View File

@@ -15,7 +15,7 @@ PACKAGES = File.expand_path("packages")
TOOLS = File.expand_path("tools")
NUGET = File.expand_path("#{TOOLS}/nuget")
NUGET_EXE = File.expand_path("#{TOOLS}/nuget/nuget.exe")
@version = "2.9.0"
@version = "2.10.0"
PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir }
desc 'Retrieve things'

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
{