# `Relyra.TestSupport.FakeIdP`
[🔗](https://github.com/szTheory/relyra/blob/v1.1.0/lib/relyra/test_support/fake_idp.ex#L1)

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.

# `build_response`

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

# `keypair`

```elixir
@spec keypair() :: term()
```

# `metadata`

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

# `sign`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
