AuthenticationDirectives

io.letsstreamit.services.profile.utils.AuthenticationDirectives

AuthenticationDirectives contains custom directives for authentication

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def getTokenData(implicit system: ActorSystem[_]): Directive1[String]

getTokenData gets the data from the token provided in the Authorization header

getTokenData gets the data from the token provided in the Authorization header

Value parameters

system

ActorSystem to handle the request

Attributes

Returns

Directive1[String] email if valid

def validateToken(implicit system: ActorSystem[_]): Directive1[String]

validateToken validates the token provided in the Authorization header

validateToken validates the token provided in the Authorization header

Value parameters

system

ActorSystem to handle the request

Attributes

Returns

Directive1[String] token if valid