MaikuB / MaikuB/flutter_appauth

AuthorizationServiceConfiguration.fromUrl support

Open
#614 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am building a AppAuth service similar to #407 and i would like to have the option to use the fetchFromUrl() with the discovery url to load my service config as part of the service initialization, before atempting to log in with the service.

I saw the Android AppAuth library offers a fetchFromUrl function for the
[AuthorizationServiceConfiguration](https://github.com/openid/AppAuth-Android/blob/master/library/java/net/openid/appauth/AuthorizationServiceConfiguration.java) so maybe there could be option to add it here as well.

````
final FlutterAppAuth _appAuth = FlutterAppAuth();
Completer oidcInitCompleter = Completer();
late final String _clientId;
late final String _discoveryUrl;
late final String _redirectUrl;
AuthorizationServiceConfiguration? _serviceConfiguration;

AppAuthService() {
_discoveryUrl = someDiscoveryURI;
_clientId = someClientID;
_redirectUrl = "someURI;
/* Wanted Feature:
_serviceConfiguration = await _appAuth.fetchFromUrl(_discoveryUrl);
*/
oidcInitCompleter.future.then((value) => notifyListeners())
}
````

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

Start by comparing the Android AuthorizationServiceConfiguration.fetchFromUrl implementation linked in the issue and reviewing the existing service-initialization flow related to #407. Determine how the Flutter API should expose discovery-based configuration before login, then verify that the behavior works across the Android and iOS plugin implementations.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter, ios
Domain
api, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.