OpenStax.Keystone v0.1.9 OpenStax.Keystone.Endpoint View Source

This module is responsible for storing configuration of Keystone endpoints.

Link to this section Summary

Link to this section Functions

Link to this function get_auth_token(endpoint_id) View Source

Returns current auth token for given endpoint.

Returns current configuration for given endpoint.

Link to this function register_password(endpoint_id, atom, endpoint_url, tenant_id, tenant_name, username, password) View Source

Registers new endpoint that uses username/password for authentication.

Endpoint URL is a URL to the authentication service, along with /v2.0 or /v3 suffix.

Version has to be one of :”2.0” or :”3.0”.

According to the specification Tenant’s ID and Name (while using v2 of the API) or Project’s ID and Name respectively (while using v3 of the API ) are mutually exclusive so you have to specify only one of them (put nil as second one).

Link to this function register_password(endpoint_id, atom, endpoint_url, project_id, project_name, username, password, domain \\ "default") View Source
Link to this function register_token(endpoint_id, atom, endpoint_url, tenant_id, tenant_name, token) View Source

Registers new endpoint that uses token for authentication.

Endpoint URL is a URL to the authentication service, along with /v2.0 suffix.

Endpoint URL is a URL to the authentication service, along with /v2.0 or /v3 suffix.

Version has to be one of :”2.0” or :”3.0”.

According to the specification Tenant’s ID and Name (while using v2 of the API) or Project’s ID and Name respectively (while using v3 of the API ) are mutually exclusive so you have to specify only one of them (put nil as second one).

Link to this function register_token(endpoint_id, atom, endpoint_url, project_id, project_name, token, domain \\ "default") View Source
Link to this function set_auth_token(endpoint_id, auth_token) View Source

Sets the auth token for given endpoint.

Starts a new agent for storing configuration.