Open emaborsa opened 1 year ago
possible duplicate of #39
Well, the mai problem from the deserialization of LogoutRequest
returns the parameter post_logout_redirect_url
, but it has to be post_logout_redirect_uri
, uri, not url.
I fixed it locally followings:
final lowerBody = result.body.toLowerCase();
final body = lowerBody.isEmpty
? "{}"
: lowerBody.startsWith("{")
? result.body
: lowerBody.startsWith("<html") ||
lowerBody.startsWith("<!doctype html>")
? "{}"
: "\{\"error\": \"${result.body.replaceAll("\"", "'")}\"\}";
First startsWith
is case sensitive, second the returned html starts with <!DOCTYPE html>
. Don't know if it could affect other calls.
Please see the announcement for package:oidc. it supports proper logout flows.
Hi all,
I checked out the repo, set my parameters and run the android example. It runs, I am able to get the configuration and to login. The logout throws an error in
android_ios.dart
:when it is trying to
final jsonResponse = jsonDecode(body) as Map<String, dynamic>?;
Indeed, when debugging the body of the result, it is:
As I can read, the problem is
The request does not contain a URI to redirect the user to post logout. Specify a URI in the post_logout_redirect_uri parameter field
, but did not understand which URI it is required and where I have to put it.Any hint?