How to use the keystoneauth1.loading.Opt function in keystoneauth1

To help you get started, we’ve selected a few keystoneauth1 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / v3.py View on Github external
def _add_common_identity_options(options):
    options.extend([
        loading.Opt('user-id', help='User ID'),
        loading.Opt('username',
                    help='Username',
                    deprecated=[loading.Opt('user-name')]),
        loading.Opt('user-domain-id', help="User's domain id"),
        loading.Opt('user-domain-name', help="User's domain name"),
    ])
github openstack / keystoneauth / keystoneauth1 / extras / oauth1 / _loading.py View on Github external
def get_options(self):
        options = super(V3OAuth1, self).get_options()

        options.extend([
            loading.Opt('consumer-key',
                        required=True,
                        help='OAuth Consumer ID/Key'),
            loading.Opt('consumer-secret',
                        required=True,
                        help='OAuth Consumer Secret'),
            loading.Opt('access-key',
                        required=True,
                        help='OAuth Access Key'),
            loading.Opt('access-secret',
                        required=True,
                        help='OAuth Access Secret'),
        ])

        return options
github openstack / keystoneauth / keystoneauth1 / extras / _saml2 / _loading.py View on Github external
def get_options(self):
        options = super(ADFSPassword, self).get_options()

        options.extend([
            loading.Opt('identity-provider-url',
                        required=True,
                        help=('An Identity Provider URL, where the SAML '
                              'authentication request will be sent.')),
            loading.Opt('service-provider-endpoint',
                        required=True,
                        help="Service Provider's Endpoint"),
            loading.Opt('service-provider-entity-id',
                        required=True,
                        help="Service Provider's SAML Entity ID"),
            loading.Opt('username', help='Username', required=True),
            loading.Opt('password',
                        secret=True,
                        required=True,
                        help='Password')
        ])

        return options
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / v2.py View on Github external
def get_options(self):
        options = super(Token, self).get_options()

        options.extend([
            loading.Opt('token', secret=True, help='Token'),
        ])

        return options
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / v3.py View on Github external
def _add_common_identity_options(options):
    options.extend([
        loading.Opt('user-id', help='User ID'),
        loading.Opt('username',
                    help='Username',
                    deprecated=[loading.Opt('user-name')]),
        loading.Opt('user-domain-id', help="User's domain id"),
        loading.Opt('user-domain-name', help="User's domain name"),
    ])
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / generic.py View on Github external
def get_options(cls):
        options = super(Password, cls).get_options()
        options.extend([
            loading.Opt('user-id', help='User id'),
            loading.Opt('username',
                        help='Username',
                        deprecated=[loading.Opt('user-name')]),
            loading.Opt('user-domain-id', help="User's domain id"),
            loading.Opt('user-domain-name', help="User's domain name"),
            loading.Opt('password',
                        secret=True,
                        prompt='Password: ',
                        help="User's password"),
        ])
        return options
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / noauth.py View on Github external
def get_options(self):
        options = super(NoAuth, self).get_options()

        options.extend([
            loading.Opt('endpoint',
                        help='The endpoint that will always be used'),
        ])

        return options
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / v3.py View on Github external
def get_options(self):
        options = super(TokenlessAuth, self).get_options()

        options.extend([
            loading.Opt('auth-url', required=True,
                        help='Authentication URL'),
            loading.Opt('domain-id', help='Domain ID to scope to'),
            loading.Opt('domain-name', help='Domain name to scope to'),
            loading.Opt('project-id', help='Project ID to scope to'),
            loading.Opt('project-name', help='Project name to scope to'),
            loading.Opt('project-domain-id',
                        help='Domain ID containing project'),
            loading.Opt('project-domain-name',
                        help='Domain name containing project'),
        ])

        return options
github openstack / keystoneauth / keystoneauth1 / loading / _plugins / identity / v3.py View on Github external
def _add_common_identity_options(options):
    options.extend([
        loading.Opt('user-id', help='User ID'),
        loading.Opt('username',
                    help='Username',
                    deprecated=[loading.Opt('user-name')]),
        loading.Opt('user-domain-id', help="User's domain id"),
        loading.Opt('user-domain-name', help="User's domain name"),
    ])