case classTokens(master: MasterToken, services: ServiceTokens) extends Product with Serializable
This is the primary interface for accessing tokens
The incoming format from Keymaster is like this:
{
"auth_service" : "MMM",
"service_tokens" : { "service_a": "AAA", "service_b": "BBB" }
}
Example:
Tokens.empty.service("service_name") // returns None
decode[Tokens](jsonString) // result in circe decode result
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
This is the primary interface for accessing tokens The incoming format from Keymaster is like this: { "auth_service" : "MMM", "service_tokens" : { "service_a": "AAA", "service_b": "BBB" } }
Tokens.empty.service("service_name") // returns None decode[Tokens](jsonString) // result in circe decode result