2024-09-05 02:27:33 +05:00
|
|
|
defmodule Comfycamp.SSOFixtures do
|
|
|
|
@moduledoc """
|
|
|
|
This module defines test helpers for creating
|
|
|
|
entities via the `Comfycamp.SSO` context.
|
|
|
|
"""
|
|
|
|
|
|
|
|
@doc """
|
|
|
|
Generate a oidc_app.
|
|
|
|
"""
|
|
|
|
def oidc_app_fixture(attrs \\ %{}) do
|
|
|
|
{:ok, oidc_app} =
|
|
|
|
attrs
|
|
|
|
|> Enum.into(%{
|
2024-09-06 13:12:30 +05:00
|
|
|
client_id: "some_client_id",
|
2024-09-05 02:27:33 +05:00
|
|
|
client_secret: "some client_secret",
|
2024-09-06 13:12:30 +05:00
|
|
|
name: "some name",
|
|
|
|
enabled: true
|
2024-09-05 02:27:33 +05:00
|
|
|
})
|
|
|
|
|> Comfycamp.SSO.create_oidc_app()
|
|
|
|
|
|
|
|
oidc_app
|
|
|
|
end
|
|
|
|
end
|