# `Sake.Auth.WellKnown`
[🔗](https://github.com/hattoriai/sake/blob/v0.4.3/lib/sake/auth/well_known.ex#L1)

Serves `/.well-known/oauth-protected-resource` (also under the endpoint's
path) and `/.well-known/oauth-authorization-server`. The protected
resource metadata of an endpoint on an external authorization server
(`Sake.Auth.External`) names that server; the authorization server
metadata is only `Sake.Auth`'s, and so is
`/.well-known/openid-configuration`, OpenID Connect Discovery's, which
is there with `openid:` alone. Mount at the root:

    forward "/.well-known", Sake.Auth.WellKnown

or `sake_well_known()` in a Phoenix router.

---

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