mirror of
https://github.com/matrix-org/matrix-spec.git
synced 2026-01-11 19:46:27 +00:00
Specify that the /openid/userinfo return value must be validated (#2288)
This commit is contained in:
parent
f2b68c7163
commit
43c65786eb
2 changed files with 7 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Specify that callers of `/_matrix/federation/v1/openid/userinfo` must validate the returned user ID.
|
||||
|
|
@ -43,7 +43,12 @@ paths:
|
|||
properties:
|
||||
sub:
|
||||
type: string
|
||||
description: The Matrix User ID who generated the token.
|
||||
description: |
|
||||
The Matrix User ID who generated the token.
|
||||
|
||||
The caller MUST validate that the returned user ID is on the server they
|
||||
called (i.e. if you make a request to example.com and it returns
|
||||
`@alice:matrix.org`, the result is invalid).
|
||||
example: "@alice:example.com"
|
||||
required:
|
||||
- sub
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue