mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 05:41:54 +00:00
Adds Setting UI views based on the Balsamiq Wireframes. This should be merged **after** #1679 <img width="1469" alt="Screenshot 2023-06-26 at 4 48 55 PM" src="https://github.com/firezone/firezone/assets/167144/0994b12b-5d8d-48a6-bc8d-c9ba07d2403c"> <img width="1469" alt="Screenshot 2023-06-26 at 4 49 01 PM" src="https://github.com/firezone/firezone/assets/167144/1d69a54d-2740-4ab0-819b-75a50a976285"> <img width="1616" alt="Screenshot 2023-06-29 at 12 29 26 AM" src="https://github.com/firezone/firezone/assets/167144/94a8913f-93be-4502-b30e-c70f147dbe62"> <img width="1616" alt="Screenshot 2023-06-29 at 12 29 14 AM" src="https://github.com/firezone/firezone/assets/167144/16dfc709-65b9-44fd-adad-c412dc1d44e6"> <img width="1616" alt="Screenshot 2023-06-29 at 2 36 43 PM" src="https://github.com/firezone/firezone/assets/167144/3cddc4b3-7494-4710-953e-4d60108b9aa8"> <img width="1616" alt="Screenshot 2023-06-29 at 2 36 56 PM" src="https://github.com/firezone/firezone/assets/167144/1f433239-1023-471d-916c-76c43f47835e"> <img width="1616" alt="Screenshot 2023-06-29 at 2 37 05 PM" src="https://github.com/firezone/firezone/assets/167144/9cd4be23-02eb-4adf-902b-00c02cecd744">
25 lines
676 B
Elixir
25 lines
676 B
Elixir
defmodule Web.ScimController do
|
|
use Web, :controller
|
|
|
|
def index(conn, _params) do
|
|
conn
|
|
# https://www.iana.org/assignments/media-types/application/scim+json
|
|
|> put_resp_content_type("application/scim+json")
|
|
# TODO: Should we even respond at the SCIM root endpoint?
|
|
|> send_resp(
|
|
200,
|
|
Jason.encode!(%{
|
|
"schemas" => ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
|
|
"totalResults" => 1,
|
|
"Resources" => [
|
|
%{
|
|
"schemas" => ["urn:ietf:params:scim:schemas:core:2.0:User"],
|
|
"id" => "1234567890",
|
|
"userName" => "jamil@foo.dev"
|
|
}
|
|
]
|
|
})
|
|
)
|
|
end
|
|
end
|