Trait openstack::auth::base::AuthMethod [] [src]

pub trait AuthMethod: Clone + Send {
    fn get_token(&self, client: &Client) -> Result<AuthToken, ApiError>;
    fn get_endpoint(&self,
                    service_type: &str,
                    endpoint_interface: Option<&str>,
                    region: Option<&str>,
                    session: &Session<Self>)
                    -> Result<Url, ApiError>; }

Trait for any authentication method.

Required Methods

Verify authentication and generate an auth token.

Get a URL for the requested service.

Implementors