Merge pull request #36 from aaron-horst/master

Allow LinkedIn scopes to be overriden per request
This commit is contained in:
Jerrie Pelser
2014-11-03 10:29:41 +07:00

View File

@@ -171,6 +171,12 @@ namespace Owin.Security.Providers.LinkedIn
// comma separated
string scope = string.Join(",", Options.Scope);
// allow scopes to be specified via the authentication properties for this request, when specified they will already be comma separated
if (properties.Dictionary.ContainsKey("scope"))
{
scope = properties.Dictionary["scope"];
}
string state = Options.StateDataFormat.Protect(properties);
string authorizationEndpoint =