Github user snoopdave commented on a diff in the pull request:

    https://github.com/apache/incubator-usergrid/pull/224#discussion_r28521589
  
    --- Diff: 
stack/rest/src/main/java/org/apache/usergrid/rest/management/ManagementResource.java
 ---
    @@ -183,6 +201,11 @@ private Response getAccessTokenInternal( UriInfo ui, 
String authorization, Strin
                 String errorDescription = "invalid username or password";
     
                 if ( user == null ) {
    +
    +                // make sure authentication is allowed considering
    +                // external token validation configuration (UG Central SSO)
    +                ensureAuthenticationAllowed( username, grant_type );
    --- End diff --
    
    I moved the "superuser-only login when external token validation enabled" 
logic into a new method called ensureAuthenticationAllowed()


---
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.
---

Reply via email to