Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum
S

@hsluoyz Another question: How can I check user's subscription validity in enforcers?

From reading docs and issues I concluded that you intended to have this integration between subscription system and ACL by having "Roles" in "Plan" entity. But I couldn't find any functionality that would assign the designated role to the user when user buys a new subscription from that plan.

I assume the ideal way of handling it is that casdoor adds the "subscribed" role to the user until the subscription expires. Then the enforcer policies would automatically get updated because of a related permission record.

S

Dear @hsluoyz , I want casdoor to store google credentials (access_token, refresh_token) in user properties attributes after a successful "sign up with google". How can I do this? Is this supported? If not, can I send a PR for it?

I want those credentials stored because I want to set Google Meet scopes and later I need to call GMeet APIs on behalf of the user