Github user michaelarusso commented on a diff in the pull request:
https://github.com/apache/usergrid/pull/544#discussion_r70094285
--- Diff:
stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UsersResource.java
---
@@ -138,7 +138,14 @@ public ApiResponse createUser( @Context UriInfo ui,
@FormParam( "username" ) Str
ApiResponse response = createApiResponse();
response.setAction( "create user" );
- UserInfo user = management.createAdminUser( null, username, name,
email, password, false, false );
+
+ UserInfo user = null;
+ if ( tokens.isExternalSSOProviderEnabled() ){
+ user =
management.createAdminUser(null,username,name,email,password,true,false);
--- End diff --
Let's add some comments about why we're auto-activating the user in this
case.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---