KeystoneClient

pt.tecnico.dsi.openstack.keystone.KeystoneClient$
See theKeystoneClient companion class

Attributes

Companion
class
Source
KeystoneClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Credential

Attributes

Companion
object
Source
KeystoneClient.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Credential

Attributes

Companion
class
Source
KeystoneClient.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Credential.type

Value members

Concrete methods

def authenticate[F[_]](baseUri: Uri, method: Either[Credential, String], scope: Option[Scope])(using client: Client[F], F: Concurrent[F]): F[KeystoneClient[F]]

Authenticate against a Keystone located at baseUri using method and the provided scope.

Authenticate against a Keystone located at baseUri using method and the provided scope.

Type parameters

F

the effect type

Value parameters

baseUri

the base uri in which Keystone is accessible.

client

the http client to use.

method

the authentication method to use. Currently only credential and token are accepted.

scope

the scope to use. Setting it to Some(Scope.Unscoped) will cause an explicit unscoped authorization. Setting it to None will cause an unscoped authorization.

Attributes

Returns

On a successful authentication an F with a KeystoneClient. On failure F will contain an error.

Source
KeystoneClient.scala
def authenticateFromEnvironment[F[_]](env: Map[String, String])(using evidence$15: Client[F], evidence$16: Concurrent[F]): F[KeystoneClient[F]]

Authenticates using the environment variables.

Authenticates using the environment variables.

Attributes

Source
KeystoneClient.scala
def authenticateWithPassword[F[_]](baseUri: Uri, userId: String, password: String)(using evidence$3: Client[F], evidence$4: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the password authentication method. Authorization is unscoped.

Authenticates an identity and generates a token. Uses the password authentication method. Authorization is unscoped.

Attributes

Source
KeystoneClient.scala
def authenticateWithPassword[F[_]](baseUri: Uri, userId: String, password: String, scope: Scope)(using evidence$5: Client[F], evidence$6: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the password authentication method and scopes authorization to scope.

Authenticates an identity and generates a token. Uses the password authentication method and scopes authorization to scope.

Attributes

Source
KeystoneClient.scala
def authenticateWithPassword[F[_]](baseUri: Uri, username: String, password: String, domain: Domain)(using evidence$7: Client[F], evidence$8: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the password authentication method. Authorization is unscoped.

Authenticates an identity and generates a token. Uses the password authentication method. Authorization is unscoped.

Attributes

Source
KeystoneClient.scala
def authenticateWithPassword[F[_]](baseUri: Uri, username: String, password: String, domain: Domain, scope: Scope)(using evidence$9: Client[F], evidence$10: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the password authentication method and scopes authorization to scope.

Authenticates an identity and generates a token. Uses the password authentication method and scopes authorization to scope.

Attributes

Source
KeystoneClient.scala
def authenticateWithToken[F[_]](baseUri: Uri, token: String)(using evidence$11: Client[F], evidence$12: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the token authentication method. Authorization is unscoped.

Authenticates an identity and generates a token. Uses the token authentication method. Authorization is unscoped.

Value parameters

token

the token to use for authentication.

Attributes

Source
KeystoneClient.scala
def authenticateWithToken[F[_]](baseUri: Uri, token: String, scope: Scope)(using evidence$13: Client[F], evidence$14: Concurrent[F]): F[KeystoneClient[F]]

Authenticates an identity and generates a token. Uses the token authentication method and scopes authorization to scope.

Authenticates an identity and generates a token. Uses the token authentication method and scopes authorization to scope.

Value parameters

scope

the scope to which the authorization will be scoped to.

token

the token to use for authentication.

Attributes

Source
KeystoneClient.scala

Creates the Json object used to authenticate in Openstack.

Creates the Json object used to authenticate in Openstack.

Value parameters

method

the authentication method to use. Currently only credential and token are accepted.

scope

the scope to use. Setting it to Some(Scope.Unscoped) will cause an explicit unscoped authorization. Setting it to None will cause an unscoped authorization.

Attributes

Source
KeystoneClient.scala