AshScim.Discovery (ash_scim v0.1.0)

Copy Markdown View Source

Generates the SCIM 2.0 discovery documents — Schemas (RFC 7643 §7) and ResourceTypes (RFC 7644 §4) — directly from the resource DSL.

These endpoints let SCIM clients introspect what the server supports without reading our docs. Most IdPs hit them once during initial setup to validate that user/group attributes line up.

Summary

Functions

Build the ResourceType document for a single resource.

Build a ListResponse of every ResourceType document for the given resources.

Build the Schema document for a single resource.

Build a ListResponse of every Schema document for the given resources.

Functions

resource_type(resource)

@spec resource_type(module()) :: %{required(String.t()) => term()}

Build the ResourceType document for a single resource.

resource_types(resources)

@spec resource_types([module()]) :: %{required(String.t()) => term()}

Build a ListResponse of every ResourceType document for the given resources.

schema(resource)

@spec schema(module()) :: %{required(String.t()) => term()}

Build the Schema document for a single resource.

schemas(resources)

@spec schemas([module()]) :: %{required(String.t()) => term()}

Build a ListResponse of every Schema document for the given resources.