diff --git a/CHANGELOG.md b/CHANGELOG.md index 318ab733..f68c928d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## [v2.5.0](https://github.com/auth0/react-native-auth0/tree/v2.5.0) (2020-06-09) + +[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.4.0...v2.5.0) + +**Added** + +- Warn when bundle identifier contains uppercase characters [\#316](https://github.com/auth0/react-native-auth0/pull/316) ([lbalmaceda](https://github.com/lbalmaceda)) + +**Security** + +- Breaking: Require ReactNative version 0.62.2 [\#315](https://github.com/auth0/react-native-auth0/pull/315) ([lbalmaceda](https://github.com/lbalmaceda)) + ## [v2.4.0](https://github.com/auth0/react-native-auth0/tree/v2.4.0) (2020-06-05) [Full Changelog](https://github.com/auth0/react-native-auth0/compare/v2.3.1...v2.4.0) diff --git a/docs/Auth.html b/docs/Auth.html index 0e6a17c0..afd335a7 100644 --- a/docs/Auth.html +++ b/docs/Auth.html @@ -2068,7 +2068,7 @@
Returns:
diff --git a/docs/Auth0.html b/docs/Auth0.html index 0782205f..6981e17a 100644 --- a/docs/Auth0.html +++ b/docs/Auth0.html @@ -230,7 +230,7 @@

Classes

diff --git a/docs/Auth0.module.exports.html b/docs/Auth0.module.exports.html index 3a7d796c..057fbbe2 100644 --- a/docs/Auth0.module.exports.html +++ b/docs/Auth0.module.exports.html @@ -295,7 +295,7 @@
Parameters:
diff --git a/docs/Users.html b/docs/Users.html index 2b016d83..3a2b8a08 100644 --- a/docs/Users.html +++ b/docs/Users.html @@ -463,7 +463,7 @@
Returns:
diff --git a/docs/WebAuth.html b/docs/WebAuth.html index d2f95e6c..ad3142d2 100644 --- a/docs/WebAuth.html +++ b/docs/WebAuth.html @@ -214,7 +214,7 @@

  • src/webauth/index.js, line 17 + >, line 21
  • @@ -266,7 +266,7 @@

    @@ -535,7 +535,7 @@

    @@ -631,7 +631,7 @@

    Returns:
    diff --git a/docs/global.html b/docs/global.html index 5b4229ce..23ac7d2c 100644 --- a/docs/global.html +++ b/docs/global.html @@ -269,7 +269,7 @@
    Returns:
    diff --git a/docs/index.html b/docs/index.html index 53f7f0d9..b7f871df 100644 --- a/docs/index.html +++ b/docs/index.html @@ -280,6 +280,10 @@

    Compatibility Matrix

    + + v0.62.2 + v2.5.0 + v0.60.5 v2.0.0 @@ -475,19 +479,16 @@

    Callback URL(s)

    security. This will enable Auth0 to recognize these URLs as valid. If omitted, authentication will not be successful.

    -
    -

    - Callback URLs must have a valid scheme value as defined by the - specification. Note however that platforms like Android don't follow this RFC - and define the scheme and host values as case-sensitive. Since - this SDK makes use of the Android's Package Name and its analogous - iOS's Product Bundle Identifier to generate the redirect URL, it's - advised to use lower case values for such. A "Redirect URI is - not valid" error will raise if this format is not respected. -

    -
    +

    + On the Android platform this URL is case-sensitive. Because of that, + this SDK will auto convert the Bundle Identifier (iOS) and + Application ID (Android) values to lowercase in order to build the + Callback URL with them. If any of these values contains uppercase + characters a warning message will be printed in the console. Make + sure to check that the right Callback URL is whitelisted in the + Auth0 dashboard or the browser will not route succesfully back to + your application. +

    Go to the Auth0 DashboardLicense

    diff --git a/docs/index.js.html b/docs/index.js.html index 54ed9b34..7f07f3a8 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -230,7 +230,7 @@

    index.js

    diff --git a/docs/src_auth_index.js.html b/docs/src_auth_index.js.html index f2eee8e4..e041feab 100644 --- a/docs/src_auth_index.js.html +++ b/docs/src_auth_index.js.html @@ -698,7 +698,7 @@

    src/auth/index.js

    diff --git a/docs/src_management_users.js.html b/docs/src_management_users.js.html index db87c97d..88fa428b 100644 --- a/docs/src_management_users.js.html +++ b/docs/src_management_users.js.html @@ -298,7 +298,7 @@

    src/management/users.js

    diff --git a/docs/src_webauth_index.js.html b/docs/src_webauth_index.js.html index ac759e74..482e3aef 100644 --- a/docs/src_webauth_index.js.html +++ b/docs/src_webauth_index.js.html @@ -196,9 +196,13 @@

    src/webauth/index.js

    const callbackUri = domain => { const bundleIdentifier = A0Auth0.bundleIdentifier; - return `${bundleIdentifier.toLowerCase()}://${domain}/${ - Platform.OS - }/${bundleIdentifier}/callback`; + const lowerCasedIdentifier = bundleIdentifier.toLowerCase(); + if (bundleIdentifier !== lowerCasedIdentifier) { + console.warn( + 'The Bundle Identifier or Application ID of your app contains uppercase characters and will be lowercased to build the Callback URL. Check the Auth0 dashboard to whitelist the right URL value.', + ); + } + return `${lowerCasedIdentifier}://${domain}/${Platform.OS}/${bundleIdentifier}/callback`; }; /** @@ -330,7 +334,7 @@

    src/webauth/index.js

    diff --git a/package.json b/package.json index 0390dfab..67a55d85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-auth0", "title": "React Native Auth0", - "version": "2.4.0", + "version": "2.5.0", "description": "React Native toolkit for Auth0 API", "main": "index.js", "scripts": { diff --git a/src/networking/telemetry.js b/src/networking/telemetry.js index e7d91723..6fd289f9 100644 --- a/src/networking/telemetry.js +++ b/src/networking/telemetry.js @@ -1 +1 @@ -module.exports = {name: 'react-native-auth0', version: '2.4.0'}; +module.exports = {name: 'react-native-auth0', version: '2.5.0'};