/usr/lib/python2.6/site-packages/openstackclient/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v3/unscoped_saml.pyc (3676B)
Ñò
;vVc @ s d Z d d k Z d d k l Z d d k l Z d d k l Z d d d g Z d „ Z d
e i f d „ ƒ YZ
d e i f d
„ ƒ YZ d S( sâ Identity v3 unscoped SAML auth action implementations.
The first step of federated auth is to fetch an unscoped token. From there,
the user can list domains and projects they are allowed to access, and request
a scoped token.iÿÿÿÿN( t lister( t
exceptions( t utilst v3unscopedsamlt v3unscopedadfst v3oidcc s ‡ f d † } | S( s$ Check the unscoped federated contextc sP | i i i } | t j o ˆ | | ƒ Sd d i t ƒ } t i | ƒ ‚ d S( Ns This command requires the use of an unscoped SAML authentication plugin. Please use argument --os-auth-type with one of the following plugins: s , ( t appt client_managert auth_plugin_namet UNSCOPED_AUTH_PLUGINSt joinR t CommandError( t selft parsed_argsR t msg( t func( sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pyt
_decorated! s
( ( R R ( ( R sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pyt auth_with_unscoped_saml s
t ListAccessibleDomainsc B s? e Z d Z e i e d ƒ Z e e i e ƒ d „ ƒ ƒ Z RS( s List accessible domainss .ListAccessibleDomainsc sA d ‰ | i i i } | i i i ƒ } ˆ ‡ f d † | Dƒ f S( Nt IDt Enabledt Namet Descriptionc 3 s+ x$ | ] } t i | ˆ d h ƒVq Wd S( t
formattersN( R t get_item_properties( t .0t s( t columns( sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pys
: s ( R R s Names Description( R R t identityt
federationt domainst list( R R
t identity_clientt data( ( R sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pyt take_action3 s (
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR" ( ( ( sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pyR . s t ListAccessibleProjectsc B s? e Z d Z e i e d ƒ Z e e i e ƒ d „ ƒ ƒ Z RS( s List accessible projectss .ListAccessibleProjectsc sA d ‰ | i i i } | i i i ƒ } ˆ ‡ f d † | Dƒ f S( NR s Domain IDR R c 3 s+ x$ | ] } t i | ˆ d h ƒVq Wd S( R N( R R ( R R ( R ( sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pys L s ( s IDs Domain IDs Enableds Name( R R R R t projectsR ( R R
R R! ( ( R sY /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/unscoped_saml.pyR" E s (
R# R$ R% R&