Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump follow-redirects from 1.15.2 to 1.15.4 in /assets #1246

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# License
# License

As a work of the [United States government](https://www.usa.gov/), this project is in the public domain within the United States of America.

Expand Down Expand Up @@ -45,4 +45,4 @@ GSA Office of Public Affairs

This permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 3 additions & 3 deletions assets/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2632,9 +2632,9 @@ flush-write-stream@^1.0.0:
readable-stream "^2.3.6"

follow-redirects@^1.14.0:
version "1.15.2"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"
integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
version "1.15.4"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==

forever-agent@~0.6.1:
version "0.6.1"
Expand Down
67 changes: 67 additions & 0 deletions lib/challenge_gov/login_gov.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,47 @@ defmodule ChallengeGov.LoginGov do

alias ChallengeGov.LoginGov.Token

# defp default_ssl_options() do
# [
# {:versions, [:"tlsv1.2", :"tlsv1.3"]},
# {:verify, :verify_none},
# {:cacertfile, :certifi.cacertfile()},
# {:depth, 10},
# {:customize_hostname_check,
# [
# match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
# ]}
# ]
# end

def get_well_known_configuration(idp_authorize_url) do
# opts = [
# proxy:
# "https://0a46f47c-f501-495d-b615-4fbb5cfaa536:[email protected]:62443"
# ]

# options = [
# proxy:
# "https://0a46f47c-f501-495d-b615-4fbb5cfaa536:[email protected]:62443",
# insecure: true
# ]

# IO.inspect(:certifi.cacertfile(), label: " CERT -------->")
# IO.inspect(System.get_env("HTTPS_PROXY"), label: " This is the proxy -------->")

# :hackney_trace.enable(:max, :io)
request =
get("https://www.google.gov", [],
ssl: [
cacertfile: "/etc/ssl/certs/ca-certificates.crt",
certfile: "/etc/ssl/certs/ca-certificates.crt"
]
)

# now = DateTime.to_string(DateTime.utc_now())
# IO.inspect(now, label: "Time: =======>")
# IO.inspect(request, label: " <--------------------------")

idp_authorize_url
|> uri_join("/.well-known/openid-configuration")
|> get()
Expand Down Expand Up @@ -119,6 +159,33 @@ defmodule ChallengeGov.LoginGov do
|> URI.to_string()
end

def process_response_headers() do
[{"Content-type", "application/json"}]
end

# def process_request_options(options) do

# [{:proxy, "https://0a46f47c-f501-495d-b615-4fbb5cfaa536:[email protected]:62443"},
# ssl: [verify: :verify_none]
# ]

# [
# :proxy, {"https://0a46f47c-f501-495d-b615-4fbb5cfaa536:[email protected]", 62_443},
# :ssl {}
# # {:socks5_user, "0a46f47c-f501-495d-b615-4fbb5cfaa536"},
# # {:socks5_pass, "JaE9Ti0EttyeX9CkaqvGiq1XF+PP80YO"}
# ]
# end
# def process_request_options(options) do
# ssl: [{:verify, :verify_peer}, {:cacertfile, "/etc/ssl/certs/ca-certificates.crt"}, {:certfile, "/etc/ssl/certs/ca-certificates.crt"}]
# [
# ssl_override: [
# certfile: "/etc/ssl/certs/ca-certificates.crt",
# cacertfile: "/etc/ssl/certs/ca-certificates.crt"
# ]
# ]
# end

def process_response_body(body) do
Poison.decode!(body)
end
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule ChallengeGov.MixProject do
{:finch, "~> 0.14.0"},
{:gettext, "~> 0.11"},
{:hackney, "~> 1.18.0"},
{:httpoison, "~> 1.7"},
{:httpoison, "~> 2.0.0"},
{:html_sanitize_ex, "~> 1.3.0-rc3"},
{:jason, "~> 1.0"},
{:joken, "~> 2.0"},
Expand Down Expand Up @@ -87,7 +87,7 @@ defmodule ChallengeGov.MixProject do
{:timex, "~> 3.5"},
{:waffle, "~> 1.1.5"},
{:waffle_ecto, "~> 0.0.11"},
{:wallaby, "~> 0.28.0", runtime: false, only: :test},
{:wallaby, "~> 0.30.2", runtime: false, only: :test},
{:xml_builder, "~> 2.1.1", override: true}
]
end
Expand Down
Loading