Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
31e8d5a
Fix some typos in README
ThexXTURBOXx Aug 2, 2024
f215910
Update flutter_web_auth_2 to 4.x alpha
ThexXTURBOXx Aug 2, 2024
f6f1c06
Allow more customization in flutter_web_auth_2
ThexXTURBOXx Aug 2, 2024
f7f0d95
Update flutter_web_auth_2 constraint even more
ThexXTURBOXx Oct 29, 2024
372c96f
Allow sending signed streamed requests
ThexXTURBOXx Oct 29, 2024
de8e1f3
Allow even more request types
ThexXTURBOXx Oct 29, 2024
7aa9f38
Try to migrate to WASM
ThexXTURBOXx Oct 29, 2024
ad21b35
Update linter
ThexXTURBOXx Oct 29, 2024
ba69607
Update to flutter_secure_storage 10 beta
ThexXTURBOXx Feb 18, 2025
3cb2f1c
Fix lint
ThexXTURBOXx Feb 18, 2025
ed4d0c3
Update CI
ThexXTURBOXx Feb 18, 2025
17e824b
Also run linter in CI
ThexXTURBOXx Feb 18, 2025
5472981
Add comment about send(...) approach
ThexXTURBOXx Feb 18, 2025
b5d828c
Test send(...) approach
ThexXTURBOXx Feb 18, 2025
0be7530
Migrate away from deprecated functions
ThexXTURBOXx Mar 5, 2025
0400ae7
Update flutter_web_auth_2 to 5.x alpha
ThexXTURBOXx Mar 5, 2025
1f4b07c
Change repo owner
ThexXTURBOXx Mar 9, 2025
a5f0da6
Bump version and add changelog
ThexXTURBOXx Mar 9, 2025
619f62b
Update Dart SDK requirement to >=3.5.0
ThexXTURBOXx Mar 9, 2025
84963a6
Remove unnecessary workflow
ThexXTURBOXx Mar 9, 2025
edc941a
Updated README
ThexXTURBOXx Mar 9, 2025
9ce6141
Fix example
ThexXTURBOXx Mar 9, 2025
68af478
Allow changing the client_id and client_secret key names
ThexXTURBOXx Mar 9, 2025
9ac6aae
Add funding
ThexXTURBOXx Mar 9, 2025
f5aee75
Add issue templates
ThexXTURBOXx Mar 9, 2025
683576f
Modernise pubspecs
ThexXTURBOXx Mar 9, 2025
1acfebe
Remove cruft
ThexXTURBOXx Mar 9, 2025
6a6b91d
Bump version and add changelog
ThexXTURBOXx Mar 9, 2025
39dcfd5
Add preliminary TikTok client
ThexXTURBOXx Mar 10, 2025
215209c
Add another header
ThexXTURBOXx Mar 11, 2025
772afaa
Add proper example code
ThexXTURBOXx Mar 12, 2025
7df687b
Fix content type issues
ThexXTURBOXx Mar 12, 2025
774dd06
Update documentation
ThexXTURBOXx Mar 12, 2025
c37a327
Bump version and add changelog
ThexXTURBOXx Mar 12, 2025
04e9b60
Fix tests
ThexXTURBOXx Mar 12, 2025
636c29c
Add custom parameter support to revoke functions
ThexXTURBOXx Apr 30, 2025
129851b
Bump version and add changelog
ThexXTURBOXx Apr 30, 2025
8cf82bc
Oops, didn't properly update changelog
ThexXTURBOXx Apr 30, 2025
2aac7d0
Update lints
ThexXTURBOXx Jun 26, 2025
9c4eef4
Update dependencies
ThexXTURBOXx Nov 27, 2025
d9a2a1c
Remove unnecessary dependency on meta
ThexXTURBOXx Nov 27, 2025
c8f00e2
Update CI
ThexXTURBOXx Nov 27, 2025
6d2771b
Bump version and add changelog
ThexXTURBOXx Nov 27, 2025
4b4af83
Bump flutter_secure_storage to stable 10.x
ThexXTURBOXx Dec 14, 2025
430b783
Bump checkout action
ThexXTURBOXx Dec 14, 2025
f613a92
Bump version and add changelog
ThexXTURBOXx Dec 14, 2025
0d641e4
Bump flutter_web_auth_2 to stable 5.x
ThexXTURBOXx Jan 13, 2026
909ecb2
Bump version and add changelog
ThexXTURBOXx Jan 13, 2026
09e83ed
Remove cruft
ThexXTURBOXx Jan 27, 2026
6afdd7f
Better exceptions/errors
ThexXTURBOXx Apr 1, 2026
33f64d0
Update example
ThexXTURBOXx Apr 1, 2026
365535b
Bump version and add changelog
ThexXTURBOXx Apr 1, 2026
2b69aee
Fix lint
ThexXTURBOXx Apr 1, 2026
3409f41
Update CI
ThexXTURBOXx Apr 1, 2026
77e6d42
Also catch `invalid_request` errors
ThexXTURBOXx Apr 20, 2026
4eb0188
Bump version and add changelog
ThexXTURBOXx Apr 20, 2026
8b2b16c
Fix lint
ThexXTURBOXx Apr 20, 2026
ed34e7c
Regenerate example files
ThexXTURBOXx Apr 22, 2026
186e11f
Allow to specify http client in more places
ThexXTURBOXx Apr 22, 2026
f6fc858
Bump version and add changelog
ThexXTURBOXx Apr 22, 2026
049a277
Fix tests
ThexXTURBOXx Apr 22, 2026
74b66c1
Allow specifying a "default" http client
ThexXTURBOXx Apr 22, 2026
13d35d0
Bump version and add changelog
ThexXTURBOXx Apr 22, 2026
40631f8
Cleanup token handling
ThexXTURBOXx Apr 23, 2026
ff2d338
Improve even more error messages
ThexXTURBOXx Apr 23, 2026
c5c95a0
Bump version and add changelog
ThexXTURBOXx Apr 23, 2026
0a2e052
Add "real" exception info
ThexXTURBOXx May 7, 2026
0064bf2
Bump version and add changelog
ThexXTURBOXx May 7, 2026
f002f0f
Remove dedicated web authentication flow
ThexXTURBOXx Jun 26, 2025
72ba3fd
Update to flutter_web_auth_2 alpha 6.x
ThexXTURBOXx May 15, 2026
81e6a4c
Bump version and add changelog
ThexXTURBOXx May 15, 2026
545188a
Ghost merge
ThexXTURBOXx May 15, 2026
148359e
Fix CI
ThexXTURBOXx May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: ThexXTURBOXx
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
96 changes: 96 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Bug report
description: Create a bug report to help us improve
title: '[Bug]: <Choose an appropriate title>'
labels:
- bug
assignees:
- ThexXTURBOXx
body:
- type: textarea
attributes:
label: Description
description: A clear and concise description of the problem
placeholder: Currently, I am trying to [...]
validations:
required: true
- type: textarea
attributes:
label: Minimal Reproduction
description: Provide steps to reproduce the problem
placeholder: 'Steps to reproduce the behaviour: [...]'
value: |-
Steps to reproduce the behaviour:

1. Use the following code:
```dart
<Paste your code here>
```
2. [...]
validations:
required: true
- type: textarea
attributes:
label: Exception or Error
description: Provide error logs
placeholder: Copy paste from the log/console
validations:
required: true
- type: textarea
attributes:
label: Expected Behaviour
description: A clear and concise description of what you expected to happen
placeholder: The package should [...]
validations:
required: true
- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem
placeholder: You can upload screenshots by drag’n’drop
- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem here
- type: markdown
attributes:
value: '# Environment'
- type: input
attributes:
label: Device
placeholder: e.g. iPhone 6, Desktop Computer
validations:
required: true
- type: input
attributes:
label: OS
placeholder: e.g. iOS 8.1, Windows 10 21H2
validations:
required: true
- type: input
attributes:
label: Browser
placeholder: e.g. Stock, Chrome, Safari, Firefox
validations:
required: true
- type: input
attributes:
label: Flutter version
placeholder: e.g. 3.21.1
validations:
required: true
- type: input
attributes:
label: oauth2_client version
placeholder: e.g. 4.0.0
validations:
required: true
- type: checkboxes
attributes:
label: Checklist
options:
- label: >-
I have read and followed the **entire** [README](https://github.com/ThexXTURBOXx/oauth2_client/blob/master/README.md)
and it has not provided the solution I need.
required: true
- label: I have provided all the information I can.
required: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ThexXTURBOXx

---

## Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like
A clear and concise description of what you want to happen.

## Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

## Additional context
Add any other context or screenshots about the feature request here.
49 changes: 23 additions & 26 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,40 @@


# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-and-test:
# The type of runner that the job will run on
name: Build and Test
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v6

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'

- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Setup Pana
run: flutter pub global activate pana

- uses: subosito/flutter-action@v1.5.3
#with:
# The Flutter version to make available on the path
# flutter-version:
- name: Get dependencies
run: flutter pub get

# Get flutter packages
- run: flutter pub get
- name: Lint
run: dart format -o none --set-exit-if-changed .

- run: flutter analyze
- name: Analyze
run: dart analyze

- run: flutter test --coverage
- run: flutter test --coverage

- uses: codecov/codecov-action@v1.3.1
- uses: codecov/codecov-action@v6
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage/lcov.info

with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/lcov.info
- name: Pana
run: pana
14 changes: 0 additions & 14 deletions .github/workflows/create_release.yml

This file was deleted.

52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
## [5.0.0-alpha.0] - 2026/05/15
* Update `flutter_web_auth_2` to `6.x` alpha
* Remove dedicated web auth flow - instead, delegate everything to `flutter_web_auth_2`

## [4.3.2] - 2026/05/07
* Add even more exception and stack trace infos

## [4.3.1] - 2026/04/23
* Cleanup token handling
* Improve even more error messages

## [4.3.0] - 2026/04/22
* Allow specifying a default http client in `OAuth2Helper`
* Allow specifying a dedicated http client in more functions

## [4.2.5] - 2026/04/20
* Catch `invalid_request` errors in `refreshToken` (see also [#13](https://github.com/ThexXTURBOXx/oauth2_client/issues/13))

## [4.2.4] - 2026/04/01
* Improve exceptions/errors

## [4.2.3] - 2026/01/13
* Bump `flutter_web_auth_2` to stable `5.x`

## [4.2.2] - 2025/12/14
* Bump `flutter_secure_storage` to stable `10.x`

## [4.2.1] - 2025/11/27
* Update dependency constraints
* Update and fix lints
* Remove unnecessary dependency on `meta` package

## [4.2.0] - 2025/04/30
* Add support for optional parameters in revoke function

## [4.1.0] - 2025/03/12
* Add TikTok OAuth 2.0 client
* Fix example
* Fix issues with HTTP `Content-Type` headers using a dirty workaround

## [4.0.1] - 2025/03/09
* Update documentation properly
* Fix a few typos here and there
* Allow changing the client ID and client secret key names

## [4.0.0] - 2025/03/09
* This package changed maintainer (to [ThexXTURBOXx](https://github.com/ThexXTURBOXx))
* Updated Dart SDK requirement to `>=3.5.0` (it is the most common nowadays and basically required)
* Updated all dependencies (with breaking changes!)
* Migrate to `web` and add WASM support
* Allow `send` HTTP requests

## [3.3.0] - 2024/07/03
* Updated dependencies
* Fix: Check for null value before casting scope to String (thanks [xolf](https://github.com/xolf))
Expand Down
Loading