This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu-samples.git
from 1da9916 Merge pull request #99 from Alanxtl/delete
add 664a9c8 feat: add MCP OAuth sample
add 0f2f54a feat: implement OAuth2 dynamic client registration and PKCE
flow
add bbc5d29 doc: add MCP OAuth authorization example with PKCE flow to
README
add ee95a84 refactor: clean up import statements across multiple files
add d199e68 refactor: reorganize import statements for consistency across
files
add ec352da fix: replace hardcoded issuer URLs with shared constant
add b17e148 fix: handle errors in random string generation for client ID,
client secret, and authorization code
add 8d7ae9b doc: add bilingual support in README files for better
accessibility
add f025b33 fix: use errors.Wrap for better error handling in JWT signing
add 34ea862 chore: move the authserver and change docs
add 6be1e7b Merge branch 'refs/heads/main' into mco_oauth
add 61d9c31 style: remove unnecessary blank lines for cleaner code
new 3d354b6 Merge pull request #91 from Similarityoung/mco_oauth
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 8 +-
README_CN.md | 8 +-
mcp/README.md | 125 +--------
mcp/README_zh.md | 128 +--------
mcp/oauth/README.md | 206 +++++++++++++++
mcp/oauth/README_zh.md | 206 +++++++++++++++
mcp/{ => oauth}/pixiu/conf.yaml | 74 ++++--
mcp/oauth/test/mcp_oauth_test.go | 294 +++++++++++++++++++++
mcp/{ => simple}/README.md | 12 +-
mcp/{ => simple}/README_zh.md | 12 +-
mcp/{ => simple}/pixiu/conf.yaml | 0
mcp/{ => simple}/server/server.go | 0
mcp/{ => simple}/test/mcp_test.go | 15 +-
tools/authserver/client.go | 107 ++++++++
tools/authserver/handlers_test.go | 290 ++++++++++++++++++++
tools/authserver/jwt.go | 87 ++++++
tools/authserver/jwt_test.go | 133 ++++++++++
tools/authserver/oauth.go | 189 +++++++++++++
.../server/app => tools/authserver}/server.go | 32 ++-
tools/authserver/store.go | 63 +++++
tools/authserver/util.go | 57 ++++
tools/authserver/wellknown.go | 71 +++++
22 files changed, 1817 insertions(+), 300 deletions(-)
create mode 100644 mcp/oauth/README.md
create mode 100644 mcp/oauth/README_zh.md
copy mcp/{ => oauth}/pixiu/conf.yaml (77%)
create mode 100644 mcp/oauth/test/mcp_oauth_test.go
copy mcp/{ => simple}/README.md (89%)
copy mcp/{ => simple}/README_zh.md (91%)
rename mcp/{ => simple}/pixiu/conf.yaml (100%)
rename mcp/{ => simple}/server/server.go (100%)
rename mcp/{ => simple}/test/mcp_test.go (93%)
create mode 100644 tools/authserver/client.go
create mode 100644 tools/authserver/handlers_test.go
create mode 100644 tools/authserver/jwt.go
create mode 100644 tools/authserver/jwt_test.go
create mode 100644 tools/authserver/oauth.go
copy {plugins/ratelimit/server/app => tools/authserver}/server.go (53%)
create mode 100644 tools/authserver/store.go
create mode 100644 tools/authserver/util.go
create mode 100644 tools/authserver/wellknown.go