Skip to content

Commit 6158b5e

Browse files
authored
Merge pull request #25 from ThisIsMissEm/feat/add-consideration-for-logo_uri
Add security consideration for logo_uri usage
2 parents bab0ab4 + 8fc35a6 commit 6158b5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

draft-parecki-oauth-client-id-metadata-document.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ Authorization servers fetching the client metadata document and resolving URLs l
258258
Authorization servers SHOULD limit the response size when fetching the client metadata document, as to avoid denial of service attacks against the authorization server by consuming excessive resources (memory, disk, database). The recommended maximum response size for client metadata documents is 5 kilobytes.
259259

260260

261+
## Displaying Logos to End-Users
262+
263+
Authorization servers that wish to make use of the `logo_uri` property within client metadata document SHOULD prefetch the file at `logo_uri` and cache it for the cache duration of the client metadata document. This allows for moderation tools to verify the file contents (e.g., preventing usage of logos that look like other logos), as well as preventing the logo from being dynamically changed to confuse an end-user.
264+
265+
Caching of the `logo_uri` response can additionally prevent cross-domain tracking through the `logo_uri` being requested by the client, since the cached file would be served not from the remote URI but instead from a URI that the Authorization server trusts.
266+
261267
# IANA Considerations
262268

263269
## OAuth Authorization Server Metadata Registry

0 commit comments

Comments
 (0)