Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforcer EnableAcceptJsonRequest #111

Closed
Danny5487401 opened this issue May 24, 2024 · 4 comments · Fixed by #119
Closed

enforcer EnableAcceptJsonRequest #111

Danny5487401 opened this issue May 24, 2024 · 4 comments · Fixed by #119
Assignees
Labels
enhancement New feature or request

Comments

@Danny5487401
Copy link

how to turn EnableAcceptJsonRequest for casbin-client

@casbin-bot casbin-bot added the enhancement New feature or request label May 24, 2024
@hsluoyz
Copy link
Member

hsluoyz commented May 24, 2024

@Danny5487401 what do you mean?

@Danny5487401
Copy link
Author

Danny5487401 commented May 25, 2024

@hsluoyz use grpc to EnableAcceptJsonRequest

func (e *Enforcer) EnableAcceptJsonRequest(acceptJsonRequest bool) {
  e.acceptJsonRequest = acceptJsonRequest
}

@hsluoyz
Copy link
Member

hsluoyz commented Oct 1, 2024

@Danny5487401 @ali-shokoohi can you make a PR?

@ali-shokoohi
Copy link
Contributor

Okay @hsluoyz . I'm going to work on it

ali-shokoohi pushed a commit to ali-shokoohi/casbin-server that referenced this issue Oct 4, 2024
Version of the "Casbin" module upgraded to 2.100 to access the "bleAcceptJsonRequest" feature then integrated this project with the new version of the "Casbin" then added new requested feature.

Changes:
- Upgraded the version of the "Casbin" module
- Integrated with the new version of the "Casbin" module
- Changed the .proto file to add "EnableAcceptJsonRequest" field at calling NewEnforcer
- Generated Go files from new changed the .proto file
- Added "EnableAcceptJsonRequest" field to each "NewEncoder" test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants