Skip to content

Commit

Permalink
Release v9.24.0 (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Dec 13, 2023
1 parent 821a0fb commit 500c33f
Show file tree
Hide file tree
Showing 27 changed files with 143 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v9.23.3
v9.24.0
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [v9.24.0](https://github.com/auth0/auth0.js/tree/v9.24.0) (2023-12-13)
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.3...v9.24.0)

**Added**
- [IAMRISK-2915] Added support for Auth0 v2 captcha provider [\#1368](https://github.com/auth0/auth0.js/pull/1368) ([alexkoumarianos-okta](https://github.com/alexkoumarianos-okta))

## [v9.23.3](https://github.com/auth0/auth0.js/tree/v9.23.3) (2023-11-13)
[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.23.2...v9.23.3)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ From CDN:

```html
<!-- Latest patch release -->
<script src="https://cdn.auth0.com/js/auth0/9.23.3/auth0.min.js"></script>
<script src="https://cdn.auth0.com/js/auth0/9.24.0/auth0.min.js"></script>
```

From [npm](https://npmjs.org):
Expand Down
39 changes: 32 additions & 7 deletions dist/auth0.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* auth0-js v9.23.3
* auth0-js v9.24.0
* Author: Auth0
* Date: 2023-11-13
* Date: 2023-12-13
* License: MIT
*/

Expand Down Expand Up @@ -4929,7 +4929,7 @@
decode: decode$1
};

var version = { raw: '9.23.3' };
var version = { raw: '9.24.0' };

var toString = Object.prototype.toString;

Expand Down Expand Up @@ -7603,6 +7603,7 @@
var FRIENDLY_CAPTCHA_PROVIDER = 'friendly_captcha';
var ARKOSE_PROVIDER = 'arkose';
var AUTH0_PROVIDER = 'auth0';
var AUTH0_V2_CAPTCHA_PROVIDER = 'auth0_v2';
var MAX_RETRY = 3;

var defaults$2 = {
Expand Down Expand Up @@ -7642,6 +7643,9 @@
arkose: function () {
return '<div class="arkose" ></div><input type="hidden" name="captcha" />';
},
auth0_v2: function () {
return '<div class="auth0_v2" ></div><input type="hidden" name="captcha" />';
},
error: function () {
return '<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>';
}
Expand Down Expand Up @@ -7670,6 +7674,8 @@
return window.friendlyChallenge;
case ARKOSE_PROVIDER:
return window.arkose;
case AUTH0_V2_CAPTCHA_PROVIDER:
return window.turnstile;
/* istanbul ignore next */
default:
throw new Error('Unknown captcha provider');
Expand Down Expand Up @@ -7712,6 +7718,11 @@
siteKey +
'/api.js'
);
case AUTH0_V2_CAPTCHA_PROVIDER:
return (
'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=' +
callback
);
/* istanbul ignore next */
default:
throw new Error('Unknown captcha provider');
Expand Down Expand Up @@ -7830,6 +7841,9 @@
case ARKOSE_PROVIDER:
captchaClass = '.arkose';
break;
case AUTH0_V2_CAPTCHA_PROVIDER:
captchaClass = '.auth0_v2';
break;
}
var captchaDiv = element.querySelector(captchaClass);

Expand Down Expand Up @@ -7877,7 +7891,7 @@
}
});
} else {
widgetId = global.render(captchaDiv, {
var renderParams = {
callback: setValue,
'expired-callback': function () {
setValue();
Expand All @@ -7886,7 +7900,12 @@
setValue();
},
sitekey: challenge.siteKey
});
};
if (challenge.provider === AUTH0_V2_CAPTCHA_PROVIDER) {
renderParams.language = options.lang;
renderParams.theme = 'light';
}
widgetId = global.render(captchaDiv, renderParams);
element.setAttribute('data-wid', widgetId);
}
},
Expand All @@ -7908,6 +7927,7 @@
* @param {Function} [options.templates.hcaptcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.friendly_captcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.arkose] template function receiving the challenge and returning a string
* @param {Function} [options.templates.auth0_v2] template function receiving the challenge and returning a string
* @param {Function} [options.templates.error] template function returning a custom error message when the challenge could not be fetched, receives the error as first argument
* @param {String} [options.lang=en] the ISO code of the language for recaptcha
* @param {Function} [callback] An optional callback called after captcha is loaded
Expand Down Expand Up @@ -7935,7 +7955,8 @@
challenge.provider === RECAPTCHA_ENTERPRISE_PROVIDER ||
challenge.provider === HCAPTCHA_PROVIDER ||
challenge.provider === FRIENDLY_CAPTCHA_PROVIDER ||
challenge.provider === ARKOSE_PROVIDER
challenge.provider === ARKOSE_PROVIDER ||
challenge.provider === AUTH0_V2_CAPTCHA_PROVIDER
) {
handleCaptchaProvider(element, options, challenge);
}
Expand Down Expand Up @@ -7982,6 +8003,7 @@
* @param {Function} [options.templates.hcaptcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.friendly_captcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.arkose] template function receiving the challenge and returning a string
* @param {Function} [options.templates.auth0_v2] template function receiving the challenge and returning a string
* @param {Function} [options.templates.error] template function returning a custom error message when the challenge could not be fetched, receives the error as first argument
* @param {String} [options.lang=en] the ISO code of the language for recaptcha
* @param {Function} [callback] An optional callback called after captcha is loaded
Expand Down Expand Up @@ -8009,7 +8031,8 @@
challenge.provider === RECAPTCHA_ENTERPRISE_PROVIDER ||
challenge.provider === HCAPTCHA_PROVIDER ||
challenge.provider === FRIENDLY_CAPTCHA_PROVIDER ||
challenge.provider === ARKOSE_PROVIDER
challenge.provider === ARKOSE_PROVIDER ||
challenge.provider === AUTH0_V2_CAPTCHA_PROVIDER
) {
handleCaptchaProvider(element, options, challenge);
}
Expand Down Expand Up @@ -9177,6 +9200,7 @@
* @param {Function} [options.templates.hcaptcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.friendly_captcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.arkose] template function receiving the challenge and returning a string
* @param {Function} [options.templates.auth0_v2] template function receiving the challenge and returning a string
* @param {Function} [options.templates.error] template function returning a custom error message when the challenge could not be fetched, receives the error as first argument
* @param {String} [options.lang=en] the ISO code of the language for the captcha provider
* @param {captchaLoadedCallback} [callback] An optional callback called after captcha is loaded
Expand All @@ -9201,6 +9225,7 @@
* @param {Function} [options.templates.hcaptcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.friendly_captcha] template function receiving the challenge and returning a string
* @param {Function} [options.templates.arkose] template function receiving the challenge and returning a string
* @param {Function} [options.templates.auth0_v2] template function receiving the challenge and returning a string
* @param {Function} [options.templates.error] template function returning a custom error message when the challenge could not be fetched, receives the error as first argument
* @param {String} [options.lang=en] the ISO code of the language for the captcha provider
* @param {captchaLoadedCallback} [callback] An optional callback called after captcha is loaded
Expand Down
6 changes: 3 additions & 3 deletions dist/auth0.min.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/auth0.min.esm.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/auth0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/auth0.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/cordova-auth0-plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* auth0-js v9.23.3
* auth0-js v9.24.0
* Author: Auth0
* Date: 2023-11-13
* Date: 2023-12-13
* License: MIT
*/

Expand All @@ -11,7 +11,7 @@
(global = global || self, global.CordovaAuth0Plugin = factory());
}(this, (function () { 'use strict';

var version = { raw: '9.23.3' };
var version = { raw: '9.24.0' };

var toString = Object.prototype.toString;

Expand Down
6 changes: 3 additions & 3 deletions dist/cordova-auth0-plugin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cordova-auth0-plugin.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Authentication.html
Original file line number Diff line number Diff line change
Expand Up @@ -4202,7 +4202,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Management.html
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
70 changes: 68 additions & 2 deletions docs/WebAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -4855,6 +4855,39 @@ <h6>Properties</h6>



<tr>

<td class="name"><code>auth0_v2</code></td>


<td class="type">


<span class="param-type">function</span>



</td>


<td class="attributes">

&lt;optional><br>





</td>




<td class="description last"><p>template function receiving the challenge and returning a string</p></td>
</tr>



<tr>

<td class="name"><code>error</code></td>
Expand Down Expand Up @@ -5432,6 +5465,39 @@ <h6>Properties</h6>



<tr>

<td class="name"><code>auth0_v2</code></td>


<td class="type">


<span class="param-type">function</span>



</td>


<td class="attributes">

&lt;optional><br>





</td>




<td class="description last"><p>template function receiving the challenge and returning a string</p></td>
</tr>



<tr>

<td class="name"><code>error</code></td>
Expand Down Expand Up @@ -5587,7 +5653,7 @@ <h6>Properties</h6>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="web-auth_index.js.html">web-auth/index.js</a>, <a href="web-auth_index.js.html#line1163">line 1163</a>
<a href="web-auth_index.js.html">web-auth/index.js</a>, <a href="web-auth_index.js.html#line1164">line 1164</a>
</li></ul></dd>


Expand Down Expand Up @@ -7284,7 +7350,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/authentication_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/authentication_passwordless-authentication.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="page-title">Home</h1>



<h3>auth0-js 9.23.3</h3>
<h3>auth0-js 9.24.0</h3>



Expand Down Expand Up @@ -61,7 +61,7 @@ <h2>Getting started</h2>
<h3>Installation</h3>
<p>From CDN:</p>
<pre class="prettyprint source lang-html"><code>&lt;!-- Latest patch release -->
&lt;script src=&quot;https://cdn.auth0.com/js/auth0/9.23.3/auth0.min.js&quot;>&lt;/script>
&lt;script src=&quot;https://cdn.auth0.com/js/auth0/9.24.0/auth0.min.js&quot;>&lt;/script>
</code></pre>
<p>From <a href="https://npmjs.org">npm</a>:</p>
<pre class="prettyprint source lang-sh"><code>npm install auth0-js
Expand Down Expand Up @@ -167,7 +167,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/management_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Authentic
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Mon Nov 13 2023 11:22:22 GMT+0100 (Central European Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed Dec 13 2023 15:55:02 GMT+0100 (Central European Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
Loading

0 comments on commit 500c33f

Please sign in to comment.