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

Casbin adapter best practices

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

    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.

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