Skip to content

Commit

Permalink
Mark type in AuthenticationData as optional (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Mar 8, 2022
1 parent d199c05 commit 284d0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/989.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that the `type` in user-interactive authentication can be omitted.
8 changes: 5 additions & 3 deletions data/api/client-server/definitions/auth_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ description: |-
type: object
properties:
type:
description: The login type that the client is attempting to complete.
description: |-
The authentication type that the client is attempting to complete.
May be omitted if `session` is given, and the client is reissuing a
request which it believes has been completed out-of-band (for example,
via the [fallback mechanism](#fallback)).
type: string
session:
description: The value of the session key given by the homeserver.
type: string
additionalProperties:
description: Keys dependent on the login type
type: object
required:
- type
example:
type: "example.type.foo"
session: "xxxxx"
Expand Down

0 comments on commit 284d0e2

Please sign in to comment.