OpenStax.Keystone v0.1.5 OpenStax.Keystone.Endpoint

This module is responsible for storing configuration of Keystone endpoints.

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

Functions

get_auth_token(endpoint_id)

Returns current auth token for given endpoint.

get_config(endpoint_id)

Returns current configuration for given endpoint.

register_password(endpoint_id, atom, endpoint_url, tenant_id, tenant_name, username, password)

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).

register_token(endpoint_id, atom, endpoint_url, tenant_id, tenant_name, token)

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).

set_auth_token(endpoint_id, auth_token)

Sets the auth token for given endpoint.

start_link(opts \\ [])

Starts a new agent for storing configuration.