ging / fiware-idm-deprecated

DEPRECATED - Identity Manager - Keyrock
Apache License 2.0
18 stars 25 forks source link

Authzforce application domain not returned with user_info. #58

Closed dmabtrg closed 8 years ago

dmabtrg commented 8 years ago

When the pep proxy request the user_info to keystone, the application domain in authzforce is not returned, even though it exists. The problem is this lines on controllers.py:

if getattr(application, 'ac_domain', None):
    response_body['app_azf_domain'] = application.ac_domain

Here, application is a dictionary, not an object, so getattr always fails to find ac_domain. Something like this should work:

if 'ac_domain' in application:
    response_body['app_azf_domain'] = application['ac_domain']
federicofdez commented 8 years ago

Hi @dmabtrg

Thank you for writing. You are right: the ac_domain wasn't being properly retrieved. We just fixed it in ging/keystone@009e96d8fe32571f3ffa34677cbf6054451d7aa1. It should all work now.

Regards, Federico Fernández