Skip to content

fix oidcc_plug.gen.controller AuthHTML generation and its testing#79

Merged
maennchen merged 1 commit intoerlef:mainfrom
Lionstiger:main
Apr 9, 2026
Merged

fix oidcc_plug.gen.controller AuthHTML generation and its testing#79
maennchen merged 1 commit intoerlef:mainfrom
Lionstiger:main

Conversation

@Lionstiger
Copy link
Copy Markdown
Contributor

Encountered errors when running oidcc_plug.gen.controller and found that the igniter task generates this code:
(example using test values)

# lib/test/test_web/auth_html.ex
defmodule Test.TestWeb.AuthHTML do
  defmodule Test.TestWeb.AuthHTML do
    use TestWeb, :html
    embed_templates("auth_html/*")
end 

This causes auth errors to not render at all.

This pr updates the path to lib/test_web/controllers/auth_html.ex and removed the redundant defmodule line.
Also changes the test for that module to reflect those changes.

@maennchen maennchen merged commit 99cacf8 into erlef:main Apr 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants