Releases: capacitor-community/generic-oauth2
6.1.0
What's Changed
- docs: update readme by @tafelnl in #263 and #266
- feat: Add an option to disable the cache-control header on web by @Ionaru in #268
- feat: Enable implicit redirect flow on web by @eduardoRoth in #267
- feat: Listen for universal links redirections on ios by @raphael-yapla in #247
New Contributors
- @Ionaru made their first contribution in #268
- @eduardoRoth made their first contribution in #267
- @raphael-yapla made their first contribution in #247
Full Changelog: 6.0.0...6.1.0
6.0.0
What's Changed
- feat!: upgrade to Capacitor v6 by @tafelnl in #255
- style: prettify a few files by @tafelnl in #256
- feat!: rename to
@capacitor-community/generic-oauth2
and re-init plugin by @tafelnl in #257 - feat: run
npm run verify:ios
by @tafelnl in #258 - style: run
npm run fmt
by @tafelnl in #259 - fix: use lowercase 'a' in podspec name by @tafelnl in #260
- style: prettify readme by @tafelnl in #261
- feat: update readme by @tafelnl in #262
New Contributors
Full Changelog: 5.0.0...6.0.0
Breaking changes
Important
This package moved from @byteowls/capacitor-oauth2
(by @moberwasserlechner) to @capacitor-community/generic-oauth2
.
Previous users of the package @byteowls/capacitor-oauth2
are required to migrate to @capacitor-community/generic-oauth2
in order to receive continued support and updates.
Migration guide
1. Uninstall old package and install new package
npm uninstall @byteowls/capacitor-oauth2
npm install @capacitor-community/generic-oauth2
npx cap sync
2. Update imports and references in your web code
-import { OAuth2Client } from '@byteowls/capacitor-oauth2';
+import { GenericOAuth2 } from '@capacitor-community/generic-oauth2';
-OAuth2Client.authenticate();
+GenericOAuth2.authenticate();
Note
In case you implemented a Custom OAuth Handler, you need to follow step 3 and 4 as well
3. Update imports and references in your Android code
-import com.byteowls.capacitor.oauth2.handler.AccessTokenCallback;
-import com.byteowls.capacitor.oauth2.handler.OAuth2CustomHandler;
+import com.getcapacitor.community.genericoauth2.handler.AccessTokenCallback;
+import com.getcapacitor.community.genericoauth2.handler.OAuth2CustomHandler;
4. Update imports and references in your iOS code
-import ByteowlsCapacitorOauth2
+import CapacitorCommunityGenericOauth2
5.0.0
4.0.2
4.0.1
4.0.0
See CHANGELOG for details.
Attention: Breaking Change: Minimum Capacitor version is now 4.0.0
.
See the Capacitor upgrade guide: https://capacitorjs.com/docs/updating/4-0
3.0.1
3.0.0
See CHANGELOG for details.
Attention: Breaking Change: Minimum Capacitor version is now 3.0.0
.
See the Capacitor upgrade guide: https://capacitorjs.com/docs/updating/3-0
2.1.0
2.0.0
Breaking Changes
- Core: Capacitor 2.x is new minimum peer dependency. closes #80.
responseType
is required. Default values were removed. In favor of configuring anything. closes #86.pkceDisabled
was replaced withpkceEnabled
, which is NOT enabled by default. If you like to use PKCE set this to true.- If a flow must not have a
accessTokenEndpoint
but you configured one as base parameter you have to
overwrite it in the according platform sections.accessTokenEndpoint: ""
see Google example in README. - Add
redirectUrl
to base parameter and make it overwritable in the platform sections. closes #84.- Android:
customScheme
replaced byredirectUrl
- iOS:
customScheme
replaced byredirectUrl
- Android:
- Additional method argument for
OAuth2CustomHandler#logout
. closes #58- Android:
activity
as 1st argument - iOS:
viewController
as 1st argument
- Android:
See CHANGELOG for details.