MaikuB / MaikuB/flutter_appauth

AuthorizationException: {"type":0,"code":8,"errorDescription":"Unable to parse ID Token"}

Open
#604 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
308
Forks
301
Avg merge
2d 11h
Merged PRs (30d)
5

Description

Hello!

I use:
```
Flutter 3.29.0
flutter_appauth: ^9.0.0
Android Deep Links
```

I have successfully logged in to my identity provider and am returning back to my application.

But then I get this exception: `FlutterAppAuthPlatformException`:
```
code: 8
domain: null
error: null
errorDebugDescription: AuthorizationException: {"type":0,"code":8,"errorDescription":"Unable to parse ID Token"}
errorDescription: Unable to parse ID Token
errorUri: null
rootCauseDebugDescription: org.json.JSONException: Value �k�2���g0�Le�X� of type java.lang.String cannot be converted to JSONObject
type: 0
```

I found a issue with the same problem but it is closed and the author did not write how he solved the problem: https://github.com/MaikuB/flutter_appauth/issues/536

Please help me understand what the problem is?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names Flutter 3.29.0, flutter_appauth 9.0.0, Android deep links, and issue #536, but no repository file or test. Start by reproducing the Android callback and tracing the ID-token parsing exception; compare the result with issue #536. Done means the cause is identified and a documented fix or actionable reproduction is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart
Domain
authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.