【发布时间】:2012-05-06 03:06:51
【问题描述】:
服务器模式下 ravendb 的身份验证机制是什么。 Authentication 包包含用于创建用户的 AuthenticationUser 类和用于验证用户的 AuthenticateClient 类。 AuthenticateClient 类有一个函数
public bool Authenticate(DocumentDatabase currentStore, string username, string password, out AccessTokenBody.DatabaseAccess[] allowedDatabases)
我不知道如何使用这个功能。这个函数需要 DocumentDatabase 对象。我不知道如何实例化 DocumentDatabase 对象。有没有办法实现身份验证?如果您知道,请告诉我更好的方法。提前致谢。
【问题讨论】:
标签: authentication ravendb document-database