@@ -48,17 +48,19 @@ public class Auth0 {
4848
4949 /**
5050 * Creates a new object using clientId & domain
51+ *
5152 * @param clientId of your Auth0 application
52- * @param domain of your Auth0 account
53+ * @param domain of your Auth0 account
5354 */
5455 public Auth0 (String clientId , String domain ) {
5556 this (clientId , null , domain , null );
5657 }
5758
5859 /**
5960 * Creates a new object using clientId & domain
61+ *
6062 * @param clientId of your Auth0 application
61- * @param domain of your Auth0 account
63+ * @param domain of your Auth0 account
6264 */
6365 public Auth0 (String clientId , String clientSecret , String domain ) {
6466 this (clientId , clientSecret , domain , null );
@@ -68,9 +70,10 @@ public Auth0(String clientId, String clientSecret, String domain) {
6870 * Creates a new object using clientId, domain and configuration domain.
6971 * Useful when using a on-premise auth0 server that is not in the public cloud,
7072 * otherwise we recommend using the constructor {@link #Auth0(String, String)}
71- * @param clientId of your Auth0 application
72- * @param clientSecret of your Auth0 application. It can be null, specially if used for an Android application
73- * @param domain of your Auth0 account
73+ *
74+ * @param clientId of your Auth0 application
75+ * @param clientSecret of your Auth0 application. It can be null, specially if used for an Android application
76+ * @param domain of your Auth0 account
7477 * @param configurationDomain where Auth0's configuration will be fetched. By default is Auth0 public cloud
7578 */
7679 public Auth0 (String clientId , String clientSecret , String domain , String configurationDomain ) {
@@ -133,6 +136,16 @@ public Telemetry getTelemetry() {
133136 return telemetry ;
134137 }
135138
139+
140+ /**
141+ * Setter for the Telemetry to send in every request to Auth0.
142+ *
143+ * @param telemetry to send in every request to Auth0
144+ */
145+ public void setTelemetry (Telemetry telemetry ) {
146+ this .telemetry = telemetry ;
147+ }
148+
136149 /**
137150 * Avoid sending telemetry in every request to Auth0
138151 */
@@ -148,7 +161,7 @@ private String resolveConfiguration(String configurationDomain, String domainUrl
148161 if (host .endsWith (DOT_AUTH0_DOT_COM )) {
149162 String [] parts = host .split ("\\ ." );
150163 if (parts .length > 3 ) {
151- url = "https://cdn." + parts [parts .length - 3 ] + DOT_AUTH0_DOT_COM ;
164+ url = "https://cdn." + parts [parts .length - 3 ] + DOT_AUTH0_DOT_COM ;
152165 } else {
153166 url = AUTH0_US_CDN_URL ;
154167 }
0 commit comments