MaikuB / MaikuB/flutter_appauth

Possibility to Authorize as GET request without navigating to browser

Open
#598 0 comments 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

When calling authorize, an AuthorizationRequest can be created with all information that is on hand, and values for nonce, codeVerifier/codeChallenge and state are created within the package via method channels when calling authorize, after which the browser is opened with that input.

However, we require a GET request for the authorization first step and need to handle the response manually since we navigate to a separate authorization app using elements of the response.
Currently, we therefore manually create the required request, filling values for nonce, codeVerifier/codeChallenge and state, and perform a GET with an url compiled from that request. But we would really appreciate it if this can be done via your package.

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 at the package's authorize entry point and AuthorizationRequest handling, then trace the method-channel creation of nonce, codeVerifier/codeChallenge, and state before browser launch. Define an API that exposes the authorization GET request and its response without navigation, covering both Android and iOS behavior. Done means callers can perform the first request and handle its response manually.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.