Skip to content

Commit

Permalink
fix: Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadyan committed May 18, 2023
1 parent 0afdc2d commit 2a3cc71
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions apps/concierge_site/lib/controllers/auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ defmodule ConciergeSite.AuthController do

@spec register(Conn.t(), map()) :: Conn.t()
def register(conn, _params) do
base_uri = Application.get_env(:concierge_site, :keyclooak_base_uri)
client_id = Application.get_env(:concierge_site, :keyclooak_client_id)
redirect_uri = Application.get_env(:concierge_site, :keyclooak_redirect_uri)
base_uri = Application.get_env(:concierge_site, :keycloak_base_uri)
client_id = Application.get_env(:concierge_site, :keycloak_client_id)
redirect_uri = Application.get_env(:concierge_site, :keycloak_redirect_uri)

registration_uri =
URI.encode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ defmodule ConciergeSite.Web.AuthControllerTest do

describe "GET /auth/:provider/register" do
test "redirects to the OIDC registration page", %{conn: conn} do
reassign_env(:concierge_site, :keyclooak_base_uri, "TEST-BASE-URI")
reassign_env(:concierge_site, :keyclooak_client_id, "t-alerts")
reassign_env(:concierge_site, :keyclooak_redirect_uri, "TEST-REDIRECT-URI")
reassign_env(:concierge_site, :keycloak_base_uri, "TEST-BASE-URI")
reassign_env(:concierge_site, :keycloak_client_id, "t-alerts")
reassign_env(:concierge_site, :keycloak_redirect_uri, "TEST-REDIRECT-URI")

conn = get(conn, "/auth/keycloak/register")

Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import Config

config :ueberauth, Ueberauth,
providers: [
keycloak: {Draft.Ueberauth.Strategy.FakeKeycloak, []}
keycloak: {Ueberauth.Strategy.FakeKeycloak, []}
]
6 changes: 3 additions & 3 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ config :concierge_site, ConciergeSite.Endpoint,
authentication_source: System.get_env("AUTHENTICATION_SOURCE", "local")

config :concierge_site,
keyclooak_base_uri: System.get_env("KEYCLOAK_BASE_URI"),
keyclooak_client_id: System.get_env("KEYCLOAK_CLIENT_ID"),
keyclooak_redirect_uri: System.get_env("KEYCLOAK_REDIRECT_URI")
keycloak_base_uri: System.get_env("KEYCLOAK_BASE_URI"),
keycloak_client_id: System.get_env("KEYCLOAK_CLIENT_ID"),
keycloak_redirect_uri: System.get_env("KEYCLOAK_REDIRECT_URI")

config :ueberauth, Ueberauth.Strategy.OIDC,
keycloak: [
Expand Down
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import Config

config :ueberauth, Ueberauth,
providers: [
keycloak: {Draft.Ueberauth.Strategy.FakeKeycloak, []}
keycloak: {Ueberauth.Strategy.FakeKeycloak, []}
]

0 comments on commit 2a3cc71

Please sign in to comment.