8.2. 定义新的端点参数(8.2. Defining New Endpoint Parameters)
8.2. 定义新的端点参数
用于授权端点或令牌端点的新的请求或响应参数按照11.2节中的过程在OAuth参数注册表中定义和注册。
参数名称必须符合param-name ABNF,并且参数值的语法必须是明确定义的(例如,使用ABNF,或现有参数的语法的引用)。
xxxxxxxxxx
1
param-name = 1*name-char
2
name-char = "-" / "." / "_" / DIGIT / ALPHA
不是普遍适用的并且特定于使用它们的授权服务器的实现细节的未注册的特定供应商的参数扩展应该采用特定供应商的前缀(例如,以“companyname_”开头),从而不会与其他已注册的值冲突。
8.2. Defining New Endpoint Parameters
xxxxxxxxxx
1
New request or response parameters for use with the authorization
2
endpoint or the token endpoint are defined and registered in the
3
OAuth Parameters registry following the procedure in Section 11.2.
4
5
Parameter names MUST conform to the param-name ABNF, and parameter
6
values syntax MUST be well-defined (e.g., using ABNF, or a reference
7
to the syntax of an existing parameter).
8
9
param-name = 1*name-char
10
name-char = "-" / "." / "_" / DIGIT / ALPHA
11
12
13
14
15
Hardt Standards Track [Page 50]
xxxxxxxxxx
1
RFC 6749 OAuth 2.0 October 2012
2
3
4
Unregistered vendor-specific parameter extensions that are not
5
commonly applicable and that are specific to the implementation
6
details of the authorization server where they are used SHOULD
7
utilize a vendor-specific prefix that is not likely to conflict with
8
other registered values (e.g., begin with 'companyname_').
No Comments