Copy missing fields into new instance
@@ -110,6 +110,8 @@ public class OAuth2AuthHandlerImpl extends HTTPAuthorizationHandler<OAuth2Auth>
if (base.extraParams != null) {
extraParams = base.extraParams.copy();
}
+ this.callback = base.callback;
+ this.order = base.order;
// apply the new scopes
this.scopes = scopes;
this.openId = scopes != null && scopes.contains("openid");
