Bases: object
Encapsulates a raw authentication token from keystone.
Provides helper methods for extracting useful values from that token.
Return the audit chain ID if present.
In the event that a token was rescoped then this ID will be the
audit_id
of the initial token. Returns None if no value
present.
str or None.
Return the audit ID if present.
str or None.
Return the token_id associated with the auth request.
To be used in headers for authenticating OpenStack API requests.
str
Information about external mechanisms the token is bound to.
If a token is bound to an external authentication mechanism it can only be used in conjunction with that mechanism. For example if bound to a kerberos principal it may only be accepted if there is also kerberos authentication performed on the request.
A dictionary or None. The key will be the bind type the value is a dictionary that is specific to the format of the bind type. Returns None if there is no bind information in the token.
Return the domain id associated with the auth request.
str or None (if no domain associated with the token)
Return the domain name associated with the auth request.
str or None (if no domain associated with the token)
Return true if the auth token was scoped to a domain.
bool
Return the token expiration (as datetime object).
datetime
Return true if the auth token has a service catalog.
boolean
The audit ID of the initially requested token.
This is the audit_chain_id
if present or the
audit_id
.
Return true if the current project scope is the admin project.
For backwards compatibility purposes if there is nothing specified in the token we always assume we are in the admin project, so this will default to True.
:returns boolean
Return true if federation was used to get the token.
boolean
Return the token issue time (as datetime object).
datetime
Return the access token ID if OAuth authentication used.
str or None.
Return the consumer ID if OAuth authentication used.
str or None.
Return the project’s domain id associated with the auth request.
str
Return the project’s domain name associated with the auth request.
str
Return the project ID associated with the auth request.
This returns None if the auth token wasn’t scoped to a project.
str or None (if no project associated with the token)
Return if a project act as a domain.
bool
Return the project name associated with the auth request.
str or None (if no project associated with the token)
Return true if the auth token was scoped to a tenant (project).
bool
Return a list of user’s role ids associated with the auth request.
a list of strings of role ids
Return a list of user’s role names associated with the auth request.
a list of strings of role names
Return true if the auth token was scoped.
Returns true if scoped to a tenant(project) or domain, and contains a populated service catalog.
This is deprecated, use project_scoped instead.
bool
Return an object representing the list of trusted service providers.
Used for Keystone2Keystone federating-out.
keystoneauth1.service_providers.ServiceProviders
or None
Return true if the auth token was scoped to the system.
bool
Synonym for project_id.
Synonym for project_name.
Return the trust id associated with the auth request.
str or None (if no trust associated with the token)
Return true if the auth token was scoped from a delegated trust.
The trust delegation is via the OS-TRUST v3 extension.
bool
Return the trustee user id associated with a trust.
str or None (if no trust associated with the token)
Return the trustor user id associated with a trust.
str or None (if no trust associated with the token)
Return the user’s domain id associated with the auth request.
str
Return the user’s domain name associated with the auth request.
str
Return the user id associated with the auth request.
str
Return the username associated with the auth request.
Follows the pattern defined in the V2 API of first looking for ‘name’, returning that if available, and falling back to ‘username’ if name is unavailable.
str
Determine if expiration is about to occur.
true if expiration is within the given duration
boolean
Bases: keystoneauth1.access.access.AccessInfo
An object for encapsulating raw v2 auth token from identity service.
Return the audit chain ID if present.
In the event that a token was rescoped then this ID will be the
audit_id
of the initial token. Returns None if no value
present.
str or None.
Return the audit ID if present.
str or None.
Return the token_id associated with the auth request.
To be used in headers for authenticating OpenStack API requests.
str
Information about external mechanisms the token is bound to.
If a token is bound to an external authentication mechanism it can only be used in conjunction with that mechanism. For example if bound to a kerberos principal it may only be accepted if there is also kerberos authentication performed on the request.
A dictionary or None. The key will be the bind type the value is a dictionary that is specific to the format of the bind type. Returns None if there is no bind information in the token.
Return the domain id associated with the auth request.
str or None (if no domain associated with the token)
Return the domain name associated with the auth request.
str or None (if no domain associated with the token)
Return true if the auth token was scoped to a domain.
bool
Return the token expiration (as datetime object).
datetime
Return true if the auth token has a service catalog.
boolean
Return true if the current project scope is the admin project.
For backwards compatibility purposes if there is nothing specified in the token we always assume we are in the admin project, so this will default to True.
:returns boolean
Return true if federation was used to get the token.
boolean
Return the token issue time (as datetime object).
datetime
Return the access token ID if OAuth authentication used.
str or None.
Return the consumer ID if OAuth authentication used.
str or None.
Return the project’s domain id associated with the auth request.
str
Return the project’s domain name associated with the auth request.
str
Return the project ID associated with the auth request.
This returns None if the auth token wasn’t scoped to a project.
str or None (if no project associated with the token)
Return if a project act as a domain.
bool
Return the project name associated with the auth request.
str or None (if no project associated with the token)
Return a list of user’s role ids associated with the auth request.
a list of strings of role ids
Return a list of user’s role names associated with the auth request.
a list of strings of role names
Return an object representing the list of trusted service providers.
Used for Keystone2Keystone federating-out.
keystoneauth1.service_providers.ServiceProviders
or None
Return true if the auth token was scoped to the system.
bool
Return the trust id associated with the auth request.
str or None (if no trust associated with the token)
Return true if the auth token was scoped from a delegated trust.
The trust delegation is via the OS-TRUST v3 extension.
bool
Return the trustee user id associated with a trust.
str or None (if no trust associated with the token)
Return the trustor user id associated with a trust.
str or None (if no trust associated with the token)
Return the user’s domain id associated with the auth request.
str
Return the user’s domain name associated with the auth request.
str
Return the user id associated with the auth request.
str
Return the username associated with the auth request.
Follows the pattern defined in the V2 API of first looking for ‘name’, returning that if available, and falling back to ‘username’ if name is unavailable.
str
Bases: keystoneauth1.access.access.AccessInfo
An object encapsulating raw v3 auth token from identity service.
Return the audit chain ID if present.
In the event that a token was rescoped then this ID will be the
audit_id
of the initial token. Returns None if no value
present.
str or None.
Return the audit ID if present.
str or None.
Information about external mechanisms the token is bound to.
If a token is bound to an external authentication mechanism it can only be used in conjunction with that mechanism. For example if bound to a kerberos principal it may only be accepted if there is also kerberos authentication performed on the request.
A dictionary or None. The key will be the bind type the value is a dictionary that is specific to the format of the bind type. Returns None if there is no bind information in the token.
Return the domain id associated with the auth request.
str or None (if no domain associated with the token)
Return the domain name associated with the auth request.
str or None (if no domain associated with the token)
Return true if the auth token was scoped to a domain.
bool
Return the token expiration (as datetime object).
datetime
Return true if the auth token has a service catalog.
boolean
Return true if the current project scope is the admin project.
For backwards compatibility purposes if there is nothing specified in the token we always assume we are in the admin project, so this will default to True.
:returns boolean
Return true if federation was used to get the token.
boolean
Return the token issue time (as datetime object).
datetime
Return the access token ID if OAuth authentication used.
str or None.
Return the consumer ID if OAuth authentication used.
str or None.
Return the project’s domain id associated with the auth request.
str
Return the project’s domain name associated with the auth request.
str
Return the project ID associated with the auth request.
This returns None if the auth token wasn’t scoped to a project.
str or None (if no project associated with the token)
Return if a project act as a domain.
bool
Return the project name associated with the auth request.
str or None (if no project associated with the token)
Return a list of user’s role ids associated with the auth request.
a list of strings of role ids
Return a list of user’s role names associated with the auth request.
a list of strings of role names
Return an object representing the list of trusted service providers.
Used for Keystone2Keystone federating-out.
keystoneauth1.service_providers.ServiceProviders
or None
Return true if the auth token was scoped to the system.
bool
Return the trust id associated with the auth request.
str or None (if no trust associated with the token)
Return true if the auth token was scoped from a delegated trust.
The trust delegation is via the OS-TRUST v3 extension.
bool
Return the trustee user id associated with a trust.
str or None (if no trust associated with the token)
Return the trustor user id associated with a trust.
str or None (if no trust associated with the token)
Return the user’s domain id associated with the auth request.
str
Return the user’s domain name associated with the auth request.
str
Return the user id associated with the auth request.
str
Return the username associated with the auth request.
Follows the pattern defined in the V2 API of first looking for ‘name’, returning that if available, and falling back to ‘username’ if name is unavailable.
str
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.