See GitHub Releases for details
5.0.0 - 2023-09-04
- Minimum Capacitor version is 5.0.0.! #211
- Remove web option
windowReplace
as it is deprecated and gives build exceptions. See https://www.w3schools.com/jsref/met_win_open.asp for details.
4.0.2 - 2023-04-11
- Web: Parse url parameters for search and hash properly #183, #182. Thank you, @jvartanian
4.0.1 - 2023-04-11
- Update dev dependencies
4.0.0 - 2022-09-18
- Minimum Capacitor version is 4.0.0.! #211
3.0.1 - 2021-08-11
- Where to securely save tokens README entry. #139 Thank you @RaphaelWoude
- Chore: Use main instead of master branch. #168
3.0.0 - 2021-08-02
- Web: Add a new option
windowReplace
that defaults to undefined. Used inwindow.open()
4th param. This will fix https://bugs.chromium.org/p/chromium/issues/detail?id=1164959 #153 - Web, Android: Add "authorization_response" and "access_token_response" to the result returned to JS. On iOS it is not possible to extract the authorization response because of the used lib. #154
- Web, Android: Added
additionalResourceHeaders
to base options - Web, Android, iOS: Added
logsEnabled
to base options. If enabled extensive logs are written. All logs are prefixed withI/Capacitor/OAuth2ClientPlugin
across all platforms.
- Web: # in URL causes parser to ignore ? #132 #133
- Android: Fix boolean param inheritance (#162) #162
2.1.0 - 2020-08-27
- ios: Sign in with Apple. Closes #45.
The plugin will detect that the iOS 13+ buildin UI is needed, when
authorizationBaseUrl
containsappleid.apple.com
. This is needed for other platforms and iOS <=12 anyway. Android, web, iOS <12 are not supported in this release.
- iOS: Upgrade SwiftOAuth2 to head. Closes #105
2.0.0 - 2020-04-20
- 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:
- iOS: If the user touches "done" in safari without entering the credentials the USER_CANCELLED error is sent. closes #71
- Web: Include all url params from the accessToken request if no resourceUrl is present. closes #72. thx @sanjaywadhwani
- Android: Add an alternative to handle the activity result intent.
This is controlled by Android specific parameters
handleResultOnNewIntent
for the alternative andhandleResultOnActivityResult
for the default. closes #52, #55.
- Android: Allow no resource url and just return every we got until so far. closes #75. thx @0x4AMiller
- Web, iOS, Android: All base parameters are overwritable in the platform sections. closes #84.
- Restriction to the response type
code
andtoken
was removed. Devs can configure anything but are responsible for it as well. closes #86.
- iOS: XCode 11.4 crash on app start. closes #73. thx @macdja38
- CustomHandler Facebook example logout fixed. closes #79. thx @REPTILEHAUS
- Facebook force authentication with FB App. closes #69. thx @mrbatista
1.1.0 - 2020-01-22
- Docs for Facebook if using iOS 13 and Facebook pod 5.x #56
- Align Android behavior to iOS where the additional parameters are not overwritten #57 (thx @maggix)
- Upgrade dev dependencies to Capacitor 1.4.0
- Refresh token feature for iOS and Android #64 (thx @dennisameling)
- Detect when user cancels authentication on web (implicit flow) #25 (thx @michaeltintiuc)
1.0.1 - 2019-09-19
- Add OpenID not supported to README
- Add CHANGELOG file to project
- web/pwa:
pkceCodeChallenge
was alwaysundefined
because promise was not awaited properly #53 (thx @nicksteenstra)
1.0.0 - 2019-06-26
- Add minimum cap version to installation notice
- Upgrade to Capacitor 1.0.0 #43,#39
- Android: Fix plugin does not send resource url response to app after specific steps #28
- Android: Fix Java compiler error #36 (thx @Anthbs)
- Fix github security error by updating Jest lib