Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2094b9c4f | ||
|
|
e51b69cf8f | ||
|
|
c083049ce3 | ||
|
|
d7947f010a | ||
|
|
bc4767f479 | ||
|
|
fb60718771 | ||
|
|
c596c7787c | ||
|
|
1625f787d2 | ||
|
|
b0825b8339 | ||
|
|
a5af6f4886 |
13
Rakefile.rb
13
Rakefile.rb
@@ -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 = ENV['APPVEYOR_REPO_TAG_NAME'] || '0.0.1-alpha1'
|
||||
@version = "2.7.0"
|
||||
PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir }
|
||||
|
||||
desc 'Retrieve things'
|
||||
@@ -63,17 +63,10 @@ end
|
||||
|
||||
desc 'publish nugets'
|
||||
task :nuspec_publish do
|
||||
if ENV['APPVEYOR_REPO_TAG'] != 'true'
|
||||
puts 'not publishing since APPVEYOR_REPO_TAG has not been set. Please add a github tag'
|
||||
else
|
||||
PROJECTS.each{|dir|
|
||||
Dir.chdir(dir) do
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first}"
|
||||
end
|
||||
}
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
|
||||
end
|
||||
|
||||
|
||||
|
||||
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first}"
|
||||
end
|
||||
|
||||
@@ -5,9 +5,6 @@ install:
|
||||
- set PATH=C:\Ruby22\bin;%PATH%
|
||||
- bundle install
|
||||
build_script:
|
||||
- rake publish
|
||||
- rake preflight
|
||||
artifacts:
|
||||
- path: src\**\*.nupkg
|
||||
environment:
|
||||
NUGET_KEY:
|
||||
secure: 5m1zupizmNvVwCg2MDUkRGQbbVfNypLo9yCstTAXQ5KHDypBe5RrGKi1HnEAhAy8
|
||||
@@ -187,7 +187,12 @@ namespace Owin.Security.Providers.Salesforce
|
||||
var state = Options.StateDataFormat.Protect(properties);
|
||||
|
||||
var authorizationEndpoint =
|
||||
$"{Options.Endpoints.AuthorizationEndpoint}?response_type={"code"}&client_id={Options.ClientId}&redirect_uri={HttpUtility.UrlEncode(redirectUri)}&display={"page"}&immediate={false}&state={Uri.EscapeDataString(state)}&scope={""}";
|
||||
$"{Options.Endpoints.AuthorizationEndpoint}?response_type={"code"}&client_id={Options.ClientId}&redirect_uri={HttpUtility.UrlEncode(redirectUri)}&display={"page"}&immediate={false}&state={Uri.EscapeDataString(state)}";
|
||||
|
||||
if (Options.Scope != null && Options.Scope.Count > 0)
|
||||
{
|
||||
authorizationEndpoint += $"&scope={string.Join(" ", Options.Scope)}";
|
||||
}
|
||||
|
||||
if (Options.Prompt != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user