Casbin = way to authorization
A place for Casbin developers and users
现在注册
已注册用户请  登录
主题样式选择
默认主题样式 ✅
知乎主题样式 
natilivni
Casbin官方博客站  ›  Casbin

Casbin adapter best practices

  •  
  •  
    natilivni · 4个月前 · 34 次点击 
    这是一个创建于 110 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Hello,

    I want to implement casbin in my .NET application but have a few questions.

    1. Is it best practice for the enforcer to be a singleton or to create a new one each time you need to authorize?

    2. Is there a recommended adapter for Ms sql server?

    3. Is there a recommended adapter for postgres?

    4. As a follow up to #2 and #3, is it best practice for the adapter to be a singleton or to recreate it for each request?

    I appreciate any advice on these topics.

    34 次点击  ∙  1 人收藏  
      Tweet Weibo 忽略主题 
    目前尚无回复
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   0 人在线   最高记录 30   ·     选择语言  ·     选择编辑器
    创意工作者们的社区
    World is powered by code
    VERSION: ccc6af3 · 11ms · UTC 17:48 · PVG 01:48 · LAX 10:48 · JFK 13:48
    ♥ Do have faith in what you're doing