mirror of
https://github.com/openziti/ziti.git
synced 2026-09-10 16:55:41 +00:00
79c2bc9aa4
- migrates from op.NewProvider() to LegacyServer/RegisterLegacyServer, routing all OIDC endpoint errors through op.WriteError which maps server_error to HTTP 500 and supports custom status codes via op.StatusError - returns oidc.ErrInvalidClient() from AuthorizeClientIDSecret for unknown clients and bad secrets (HTTP 400 with invalid_client) - returns oidc.ErrInvalidGrant() from parseRefreshToken, parseAccessToken, createAccessToken, and renewRefreshToken for client-supplied token errors (HTTP 400 with invalid_grant) - fixes copy-paste bug in parseAccessToken that reported "invalid refresh_token" for access token errors - plain Go errors from server-side failures (identity read, JSON marshal, token signing, Raft dispatch) now correctly surface as HTTP 500 via WriteError's DefaultToServerError handling - adds integration tests covering error codes for token endpoint, login endpoint, userinfo endpoint, and end_session endpoint