1
根據documentation,當啓用AutoLogin並指定NextUri時,我應該自動登錄並在註冊後重定向到NextUri。但是,這兩種情況都沒有發生,而是我被引導至登錄頁面。爲了測試它與權限無關,我將NextUri作爲未經驗證的路由,只返回OK狀態的HTTP狀態。Stormpath在註冊後不會自動重定向到指定路由
下面是我的配置代碼片段:
Configuration = new StormpathConfiguration
{
Web = new WebConfiguration
{
Register = new WebRegisterRouteConfiguration
{
Enabled = true,
AutoLogin = true,
NextUri = "/dummy"
}
}
}
和虛擬路線的NextUri:
[Route("dummy")]
[HttpGet]
public HttpResponseMessage DummyRoute()
{
return new HttpResponseMessage(HttpStatusCode.OK);
}
我缺少什麼?
你做得對 - 這是一個錯誤。順便說一句,如果你想聊天,隨時加入我們的[Slack](https://talkstormpath.shipit.xyz/)。 –