Sync all Go structs with upstream Casdoor object package#234
Sync all Go structs with upstream Casdoor object package#234
Conversation
|
|
Add missing fields from commit 3cb9df3723ce55a6fb9572c20286cad4f613e16a: - Add ScopeItem struct for custom OAuth scopes - Add Category field to Application struct - Add Type field to Application struct - Add Scopes field to Application struct Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
This PR syncs multiple recent changes from upstream Casdoor: - Add Category field to JwtItem (commit c8f8f88) - Add Category, Type, and Scopes fields to Application (commit 3cb9df3) - Add Tools field to ScopeItem for MCP scope-to-tool permissions (commit 6e1e5dd) - Add reverse proxy fields: Domain, OtherDomains, UpstreamHost, SslMode, SslCert (commit 3b8e7c9) Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
|
@copilot should sync all Go structs under object pkg: https://github.com/casdoor/casdoor/tree/master/object |
- User: Add WebauthnCredentials field for passwordless authentication - Organization: Add AccountMenu and DcrPolicy fields - Provider: Add HttpHeaders, SslMode, EmailRegex, EnableProxy, EnablePkce fields - Token: Add Resource field for RFC 8707 Resource Indicator support This ensures complete sync with upstream Casdoor object package. Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Done! I've synced all Go structs from the upstream object package. Changes include: User (552c668): WebauthnCredentials field All changes compile successfully with no security issues found. |
SDK structs were missing fields added in recent upstream commits, causing clients to implicitly send zero-values during CRUD operations. This PR comprehensively syncs all major structs with the upstream Casdoor object package.
Changes
New
ScopeItemstruct for custom OAuth scopes:Applicationstruct additions:Category(varchar(20)) - Application category: "Default", "Agent"Type(varchar(20)) - Application type: "All", "MCP", "A2A", "OIDC", "OAuth", "SAML", "CAS"Scopes([]*ScopeItem) - Custom OAuth scopes for agent applicationsDomain,OtherDomains,UpstreamHost,SslMode,SslCert- Reverse proxy configurationJwtItemstruct addition:Category(string) - Token attribute categorizationUserstruct addition:WebauthnCredentials([]webauthn.Credential) - WebAuthn support for passwordless authenticationOrganizationstruct additions:AccountMenu(varchar(20)) - Account menu configurationDcrPolicy(varchar(100)) - Dynamic Client Registration policy supportProviderstruct additions:HttpHeaders(map[string]string) - Custom HTTP headers for provider communicationSslMode(varchar(100)) - SSL mode: "Auto", "Enable", "Disable"EmailRegex(varchar(200)) - Email validation regexEnableProxy(bool) - Proxy support flagEnablePkce(bool) - PKCE (Proof Key for Code Exchange) supportTokenstruct addition:Resource(varchar(255)) - RFC 8707 Resource Indicator supportVerification
Syncs SDK with upstream commits: 3cb9df3, 6e1e5dd, c8f8f88, 3b8e7c9
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.