libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] kshtsk commented on issue #1367: openstack: fix project-scoped with project name
Date Wed, 13 Nov 2019 23:44:51 GMT
kshtsk commented on issue #1367: openstack: fix project-scoped with project name
URL: https://github.com/apache/libcloud/pull/1367#issuecomment-553657091
 
 
   Hm, small correction, one can use both project domain name and project domain id at a time,
or any of them according to openstack keystone/auth/schema.py file:
   ```
           'scope': {
   .
   .
   .
               'type': ['object', 'string'],
               'properties': {
                   'project': {
                       'type': 'object',
                       'properties': {
                           'name': {'type': 'string', },
                           'id': {'type': 'string', },
                           'domain': {
                               'type': 'object',
                               'properties': {
                                   'id': {'type': 'string', },
                                   'name': {'type': 'string', },
                               },
                           },
                       },
                   },
   
   ``` 
   and later
   ```
       if scope is not None and isinstance(scope, dict):
           project = scope.get('project')
           if project is not None:
               if 'id' not in project and 'name' not in project:
                   msg = _(
                       'Invalid input for field scope/project: '
                       'id or name must be present.')
                   raise exception.SchemaValidationError(detail=msg)
               domain = project.get('domain')
               if domain is not None:
                   if 'id' not in domain and 'name' not in domain:
                       msg = _(
                           'Invalid input for field scope/project/domain: '
                           'id or name must be present.')
                       raise exception.SchemaValidationError(detail=msg)
   
   ```
   Nevertheless there is no `ex_` parameter for `project domain name` in libcloud.
   And as I said earlier authentication `user domain name` should have never been used as
`project domain name`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message