SetAPIURL overrides the API/issuer base URL (default: publicURL). Set it when the programmatic API + MCP are served on a different host than the web app — that host becomes the OAuth issuer and the base for the token/ registration/revocation/jwks endpoints, while authorization_endpoint and the login
(u string)
| 549 | // the login/consent pages stay on publicURL. A no-op for the empty string so |
| 550 | // callers can pass an unset config value safely. |
| 551 | func (a *API) SetAPIURL(u string) { |
| 552 | if u != "" { |
| 553 | a.apiURL = u |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | func (a *API) RegisterRoutes(r *mux.Router) { |
| 558 | // Catch-all 404/405 handlers so every error response leaves the |
no outgoing calls