Relyra.TestSupport.FakeIdP (relyra v1.1.0)

Copy Markdown View Source

A small in-process SAML response builder for tests.

The fake IdP does not attempt to model a real admin UI or cryptographic signing pipeline. It builds protocol-correct XML that exercises the SP pipeline, including the signature and assertion parsing paths used by the test suite.

Summary

Functions

build_response(opts \\ [])

@spec build_response(keyword()) :: Relyra.TestSupport.FakeIdP.Builder.t()

keypair()

@spec keypair() :: term()

metadata()

@spec metadata() :: String.t()

sign(opts, extra_opts \\ [])

@spec sign(
  Relyra.TestSupport.FakeIdP.Builder.t() | keyword(),
  keyword()
) :: String.t()