# `Insider.Sentinel.DraftCreation.Identity`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/tools/insider_lab/lib/insider/sentinel/draft_creation/identity.ex#L1)

Validators for the portable provider and disclosure-authority identities used
by the draft-creation gate. An identity selects a module only from the host's
configured allowlist; it can never resolve a module by itself.

# `authority`

```elixir
@type authority() :: map()
```

# `provider`

```elixir
@type provider() :: map()
```

# `disclosure_authority?`

```elixir
@spec disclosure_authority?(term()) :: boolean()
```

# `provider?`

```elixir
@spec provider?(term()) :: boolean()
```

# `validate_disclosure_authority`

```elixir
@spec validate_disclosure_authority(term()) ::
  {:ok, authority()} | {:error, Insider.Protocol.Error.t()}
```

# `validate_provider`

```elixir
@spec validate_provider(term()) ::
  {:ok, provider()} | {:error, Insider.Protocol.Error.t()}
```

---

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