Skip to content

Commit

Permalink
Fix test after getting local oauth endpoint working
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinsSpencer committed Nov 19, 2024
1 parent d921263 commit c7842e2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,12 @@ defmodule TeiserverWeb.OAuth.CodeControllerTest do

test "can query oauth metadata", %{conn: conn} do
resp = json_response(get(conn, ~p"/.well-known/oauth-authorization-server"), 200)
endpoint = TeiserverWeb.Endpoint.static_url()

assert resp == %{
"issuer" => "https://beyondallreason.info",
"authorization_endpoint" => "https://beyondallreason.info/oauth/authorize",
"token_endpoint" => "https://beyondallreason.info/oauth/token",
"issuer" => "#{endpoint}",
"authorization_endpoint" => "#{endpoint}/oauth/authorize",
"token_endpoint" => "#{endpoint}/oauth/token",
"token_endpoint_auth_methods_supported" => [
"none",
"client_secret_post",
Expand Down

0 comments on commit c7842e2

Please sign in to comment.