Skip to content

Commit

Permalink
:sll definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonis committed Dec 22, 2023
1 parent c4f4a01 commit 3c7bf37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config :challenge_gov,
namespace: Web,
ecto_repos: [ChallengeGov.Repo]

config :ssl, :cacertfile, "/etc/ssl/certs/ca-certificates.crt"
# config :ssl, :cacertfile, "/etc/ssl/certs/ca-certificates.crt"

# certfile: System.get_env("SSL_CERT_FILE") || "/path/to/default/certificate.pem"

Expand Down
12 changes: 8 additions & 4 deletions lib/challenge_gov/login_gov.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ defmodule ChallengeGov.LoginGov do
# ]
# )

idp_authorize_url
|> uri_join("/.well-known/openid-configuration")
|> get()
|> handle_response("Sorry, could not fetch well known configuration")
# idp_authorize_url
# |> uri_join("/.well-known/openid-configuration")
# |> get()
# |> handle_response("Sorry, could not fetch well known configuration")

HTTPoison.get("#{idp_authorize_url}/.well-known/openid-configuration", [],
ssl: [{:verify, :verify_peer}, {:cacertfile, "/etc/ssl/certs/ca-certificates.crt"}]
)

# get("#{idp_authorize_url}/.well-known/openid-configuration", [], adapter: :hackney)
end
Expand Down

0 comments on commit 3c7bf37

Please sign in to comment.