Skip to content

Releases: capacitor-community/generic-oauth2

2.0.0

20 Apr 14:09

Choose a tag to compare

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 with pkceEnabled, 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 by redirectUrl
    • iOS: customScheme replaced by redirectUrl
  • Additional method argument for OAuth2CustomHandler#logout. closes #58
    • Android: activity as 1st argument
    • iOS: viewController as 1st argument

See CHANGELOG for details.

1.1.0

31 Jan 23:24

Choose a tag to compare

1.0.1

19 Sep 14:36

Choose a tag to compare

1.0.0-beta.4

12 Mar 21:56
33c041e

Choose a tag to compare

Bug fix

  • #29 Remove base64 js lib so the plugin can be used in a web native environment without having to use webpack

1.0.0-beta.3

07 Mar 02:20

Choose a tag to compare

Bug Fix

  • Capacitor version was pinned to beta.16 in podspec file. That prevented the capacitor upgrade to beta.18 by using npx cap sync ios

1.0.0-beta.2

04 Mar 12:18
2023ab2

Choose a tag to compare

Features

  • #4 When using Code flow PKCE is enabled by default. If you do not want that disable it with the overwritable option pkceDisabled: boolean
  • #18 A overwritable option additionalParameters: {[key: string]: string} was added. Note: Only string values are allowed!
  • #23 Error messages were unified and replaced with codes. This allowed better error handling. See the available error codes.
  • On platform web a specific option windowTarget: string was added. It might help solving #21

1.0.0-beta.1

08 Feb 13:24

Choose a tag to compare

Capacitor version required

1.0.0-beta.17

Features

  • Implicit flow for web, Android and iOS

Tested with Google and Facebook on

  • Android 8.0 - Huawei P20 Lite
  • Android 7.0 - Huawei P9
  • iOS 12 - iPhone SE
  • Win10 - Chrome 71, Edge, Firefox 65
  • macOS Mojave - Safari 12, Chrome 71,