AshAuthentication.Oauth2Server

An OAuth 2.1 authorization server for Ash Framework apps. Pairs with ash_authentication for the user-login side and runs on Phoenix.

What this gives you

Installation

mix igniter.install ash_authentication_oauth2_server

This scaffolds the four resources (OAuthClient, OAuthAuthorizationCode, OAuthRefreshToken, OAuthConsent), wires them into your Accounts domain, generates an Oauth2Server config module, and adds the secret-resolution clauses on your Secrets module.

Usage

See AshAuthentication.Oauth2Server for full configuration, and the post-install notice for the steps to wire the routes into your Phoenix router and mount AshAuthentication.Phoenix.Oauth2Server.BearerPlug on your protected endpoints.