Microsoft.Owin.Security.OAuth UserInfo 端点

use*_*757 5 oauth owin openid-connect

我正在使用 Microsoft.Owin.Security.OAuth 实现 OAuth 服务器。

我使用 OAuthAuthorizationServerOptions 来设置 AuthorizeEndpointPath 和 TokenEndpointPath。看起来 UserInfoEndpointPath 没有选项。

OAuthV2 规范确实模糊地讨论了这个端点——

本规范未定义资源所有者配置文件信息 API。假设其他 API(例如 SCIM API [ID.ietf-scim-api] 或 OpenID Connect [OpenID.Core] UserInfo Endpoint)可用于此目的。

那么,有没有办法利用 OAuthAuthorizationServerProvider 来提供这个端点?我是否必须创建一个单独的 MVC 控制器端点?或者,还有更好的方法?