Skip to content

Commit 40aca8e

Browse files
committed
Define response code
1 parent 0462b93 commit 40aca8e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

draft-ietf-httpapi-privacy.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,29 @@ authentication SHOULD include the Secure attribute described in {{Section
136136
4.1.2.5 of RFC6265}}. Bearer tokens MAY use the format described in {{?RFC8959}}
137137
to indicate the expected usage to the client.
138138

139-
## Credential Revocation
139+
## Disclosure Response
140140

141141
Some deployments may not find it feasible to completely block unencrypted
142142
connections, whether because the hostname is shared with unauthenticated
143143
endpoints or for infrastructure reasons. Therefore, servers need a response for
144144
when a valid credential has been received over an insecure channel.
145145

146+
HTTP status code 403 (Forbidden) indicates that "the server understood the
147+
request but refuses to fulfill it" {!HTTP=RFC9110}. While this is generally
148+
understood to mean that "the server considers [the credentials] insufficient to
149+
grant access," it also states that "a request might be forbidden for reasons
150+
unrelated to the credentials." Servers SHOULD return status code 403 to all
151+
requests received over an insecure channel, regardless of the validity of the
152+
presented credentials.
153+
146154
Because a difference in behavior would enable attackers to guess and check
147155
possible credentials, a server MUST NOT return a different client response
148156
between a valid or invalid credential presented over an insecure connection.
149157
Differences in behavior MUST only be visible on subsequent use of the credential
150158
over a secure channel.
151159

160+
### Credential Revocation
161+
152162
When a request is received over an unencrypted channel, the presented credential
153163
is potentially compromised. Servers SHOULD revoke such credentials immediately.
154164
When the credential is next used over a secure channel, a server MAY return an

0 commit comments

Comments
 (0)