def METHOD_NAME(self, configurationAttributes, requestParameters, step):
    authenticationService = CdiUtil.bean(AuthenticationService)
    identity = CdiUtil.bean(Identity)
    credentials = identity.getCredentials()
    session_attributes = identity.getSessionId().getSessionAttributes()
    client_id = session_attributes.get("client_id")
    print "Basic (client group). Get client_id: '%s' authorization request" % client_id
    user_groups = self.client_configurations.get(client_id)
    if user_groups == None:
        print "Basic (client group). There is no user groups configuration for client_id '%s'. allow_default_login: %s" % (client_id, self.allow_default_login)
        if not self.allow_default_login:
            return False
        result = self.authenticateImpl(credentials, authenticationService)
        return result
    is_member_client_groups = self.isUserMemberOfGroups(credentials, user_groups)
    if not is_member_client_groups:
        print "Basic (client group). User '%s' hasn't permissions to log into client_id '%s' application. " % (credentials.getUsername(), client_id)
        return False
    result = self.authenticateImpl(credentials, authenticationService)
    return result