Skip to content

GraphQL login for local provider

Auto-generated from the source archive. Do not edit by hand — rerun catalyst-changelog-sync instead.

  • Adds the GraphQL mutation oAuthCreateToken(payload: OAuthCreateTokenInput!): OAuthTokens! (Password and Refresh Token grants) — the twin of the REST POST /api/o-auth/token, both delegating to the same composite handler.
  • Wires the Aurora login form to that mutation: in-flight loading state, guard verification, redirect to / on success (staying on /auth/sign-in on failure), and authenticationPasswordGuard on protected routes. Login strings are translatable.

The local-provider backend shipped a REST token endpoint, but the frontend called a GraphQL mutation that did not exist — so the login form was broken against it. The flow now works end to end in the browser. REST remains for RFC 6749-conformant external clients; GraphQL serves Aurora’s own frontends — one business flow over two transports. An unsupported grant_type returns an OAuth2-conformant error.


View original proposal