Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Entra Domain Discovery

content/entra_domain_discovery.livemd

Entra Domain Discovery

Mix.install([
  {:ex_token_toys, github: "chgeuer/ex_token_toys"}, 
  # {:ex_token_toys, path: "C:\\github\\chgeuer\\ex_token_toys"}

  {:kino, "~> 0.12.3"}
])

Trying it out

This is an Elixir version of https://aadinternals.com/osint/

Entra.Discovery.get_tenant_id_for_domain("sap.com")
|> IO.inspect(label: :tenant_id)

Entra.Discovery.get_all_domains("sap.com")
|> IO.inspect(label: :domains)

Run

domain_text_input = Kino.Input.text("Please enter the domain, like microsoft.com")
case Kino.Input.read(domain_text_input) |> String.trim() do
  nil -> "**Please enter a domain**"
  "" -> "**Please enter a domain**"
  domain -> Entra.Kino.render_domain_as_markdown_text(domain)
end
|> Kino.Markdown.new()