Github user snoopdave commented on a diff in the pull request:
https://github.com/apache/incubator-usergrid/pull/224#discussion_r28510143
--- Diff:
stack/rest/src/main/java/org/apache/usergrid/rest/management/ManagementResource.java
---
@@ -171,6 +199,17 @@ public Response getAccessToken( @Context UriInfo ui,
@HeaderParam( "Authorizatio
private Response getAccessTokenInternal( UriInfo ui, String
authorization, String grant_type, String username,
String password, String
client_id, String client_secret, long ttl,
String callback, boolean
loadAdminData ) throws Exception {
+
+
+ // if external tokens are enabled for Usegrid central
authentication,
+ // then only the superuser can login via this Usergrid instance.
+ if ( externalTokensEnabled && !username.equalsIgnoreCase(
superuserName )) {
--- End diff --
fixed. added superuserAllowed check to the logic.
---
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.
---