1

我正在实现基于 DotNetOpenAuth OpenIdProviderMVC 示例的 OpenId Provider。从 RP,我正在创建一个 OpenIdRelyingParty,并调用 CreateRequest

http://localhost:PORT/User/xrds

这正确地重定向到 OP,一切似乎都正常,但返回的 ClaimedIdentifier总是

http://localhost:PORT/User/xrds

即使我期待

http://localhost:PORT/user/username

其中用户名是我登录的用户。这是示例的问题,是我使用了不正确的 URL 作为 UserSuppliedIdentifier,还是其他原因?

4

1 回答 1

0

尝试将不同的 URL 定义为 UserSuppledIdentifier。例如,使用类似的东西http://localhost:PORT/Discovery执行返回 XRDS 文件的操作。对于身份发现,定义路由以重定向http://localhost:PORT/user/username到为 XRDS 文件提供身份验证的操作身份。

这对我有用。

祝你好运。

于 2013-09-30T15:48:57.917 回答