Skip to content

Commit 2b99dc2

Browse files
committed
Make openid the default scope
1 parent 3997574 commit 2b99dc2

4 files changed

Lines changed: 200 additions & 87 deletions

File tree

lib/src/main/java/com/auth0/authentication/AuthenticationAPIClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public SignUpRequest signUp(String email, String password) {
293293
* @param email of the user that changes the password. It's also where the email will be sent with the link to perform the change password.
294294
* @return a request to configure and start
295295
*/
296-
public ParameterizableRequest<Void> requestChangePassword(String email) {
296+
public DatabaseConnectionRequest<Void> requestChangePassword(String email) {
297297
HttpUrl url = HttpUrl.parse(auth0.getDomainUrl()).newBuilder()
298298
.addPathSegment(DB_CONNECTIONS_PATH)
299299
.addPathSegment(CHANGE_PASSWORD_PATH)
@@ -304,8 +304,9 @@ public ParameterizableRequest<Void> requestChangePassword(String email) {
304304
.setClientId(getClientId())
305305
.setConnection(defaultDbConnection)
306306
.asDictionary();
307-
return factory.POST(url, client, mapper)
307+
final ParameterizableRequest<Void> request = factory.POST(url, client, mapper)
308308
.addParameters(parameters);
309+
return new DatabaseConnectionRequest<>(request);
309310
}
310311

311312
/**

lib/src/main/java/com/auth0/authentication/ParameterBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public Map<String, Object> asDictionary() {
192192
*/
193193
public static ParameterBuilder newAuthenticationBuilder() {
194194
return newBuilder()
195-
.setScope(SCOPE_OFFLINE_ACCESS);
195+
.setScope(SCOPE_OPENID);
196196
}
197197

198198
/**

0 commit comments

Comments
 (0)