【发布时间】:2014-06-26 18:59:53
【问题描述】:
"OpenID Connect Dynamic Client Registration 1.0, 2. Client Metadata" 有一个名为 application_type 的条目,其定义值为 native 和 web。
application_type
OPTIONAL. Kind of the application. The default, if omitted, is web.
The defined values are native or web. Web Clients using the OAuth
Implicit Grant Type MUST only register URLs using the https scheme
as redirect_uris; they MUST NOT use localhost as the hostname. Native
Clients MUST only register redirect_uris using custom URI schemes or
URLs using the http: scheme with localhost as the hostname.
Authorization Servers MAY place additional constraints on Native
Clients. Authorization Servers MAY reject Redirection URI values
using the http scheme, other than the localhost case for Native
Clients. The Authorization Server MUST verify that all the registered
redirect_uris conform to these constraints. This prevents sharing a
Client ID across different types of Clients.
这些定义的值是否对应于“RFC 6749 (OAuth 2.0), 2.1. Client Types”中描述的public和confidential?
OAuth defines two client types, based on their ability to
authenticate securely with the authorization server (i.e., ability to
maintain the confidentiality of their client credentials):
confidential
Clients capable of maintaining the confidentiality of their
credentials (e.g., client implemented on a secure server with
restricted access to the client credentials), or capable of secure
client authentication using other means.
public
Clients incapable of maintaining the confidentiality of their
credentials (e.g., clients executing on the device used by the
resource owner, such as an installed native application or a web
browser-based application), and incapable of secure client
authentication via any other means.
如果没有,为什么规范(OpenID Connect 动态客户端注册 1.0)没有指定客户端类型的条目?有没有办法在client registration endpoint 指定客户端类型(公共或机密)?
【问题讨论】: