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

[Feature] Adapter supports ctx #1302

Closed
shenghui0779 opened this issue Aug 21, 2023 · 7 comments · Fixed by #1305
Closed

[Feature] Adapter supports ctx #1302

shenghui0779 opened this issue Aug 21, 2023 · 7 comments · Fixed by #1305

Comments

@shenghui0779
Copy link

image

@casbin-bot
Copy link
Member

@tangyang9464 @JalinWang

@hsluoyz
Copy link
Member

hsluoyz commented Aug 21, 2023

@PokIsemaine

@shenghui0779
Copy link
Author

Currently, the context can only be used to control the execution timeout of the adapter and cannot continue to pass down.

@shenghui0779
Copy link
Author

The adapter's methods cannot use the context passed from external sources internally.

image

@hsluoyz
Copy link
Member

hsluoyz commented Oct 25, 2023

@shenghui0779
Copy link
Author

shenghui0779 commented Oct 26, 2023

image

Context should be able to pass inward.

@toppercodes
Copy link

+1 I'm in a situation where I need the context in LoadPolicy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants