OpenStax.Keystone v0.1.8 OpenStax.Keystone.Endpoint View Source

This module is responsible for storing configuration of Keystone endpoints.

Link to this section Summary

Functions

Returns current auth token for given endpoint

Returns current configuration for given endpoint

Registers new endpoint that uses username/password for authentication

Registers new endpoint that uses token for authentication

Sets the auth token for given endpoint

Starts a new agent for storing configuration

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, version, 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 suffix.

Version has to be :”2.0” at the moment as this is the only supported version by this library.

According to the specification Tenant’s ID and Name 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, version, 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.

Version has to be :”2.0” at the moment as this is the only supported version by this library.

According to the specification Tenant’s ID and Name are mutually exclusive so you have to specify only one of them (put nil as second one).

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.