Merge branch 'client-fix-request-openid' into 'master'

[Client] Send empty object with request

See merge request famedly/famedlysdk!162
This commit is contained in:
Christian Pauly 2020-01-13 12:55:42 +00:00
commit 4fe18fe1e3

View file

@ -1056,8 +1056,10 @@ class Client {
/// The generated token is only valid for exchanging for user information from the federation API for OpenID. /// The generated token is only valid for exchanging for user information from the federation API for OpenID.
Future<OpenIdCredentials> requestOpenIdCredentials() async { Future<OpenIdCredentials> requestOpenIdCredentials() async {
final Map<String, dynamic> response = await jsonRequest( final Map<String, dynamic> response = await jsonRequest(
type: HTTPType.POST, type: HTTPType.POST,
action: "/client/r0/user/$userID/openid/request_token"); action: "/client/r0/user/$userID/openid/request_token",
data: {},
);
return OpenIdCredentials.fromJson(response); return OpenIdCredentials.fromJson(response);
} }
} }