Package

com.mohiva.play.silhouette

api

Permalink

package api

The collection of traits and utility classes that form the stable API of Silhouette.

The main API is exposed as controller actions by the com.mohiva.play.silhouette.api.Silhouette trait.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. api
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait AuthInfo extends AnyRef

    Permalink

    A marker trait for authentication information.

  2. case class AuthenticatedEvent[I <: Identity](identity: I, request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published if a request passes authentication.

    An event which will be published if a request passes authentication.

    I

    The type of the identity.

    identity

    The logged in identity.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  3. trait Authenticator extends AnyRef

    Permalink

    An authenticator tracks an authenticated user.

  4. trait Authorization[I <: Identity, A <: Authenticator] extends AnyRef

    Permalink

    A trait to define Authorization objects that let you hook an authorization implementation in secured endpoints.

    A trait to define Authorization objects that let you hook an authorization implementation in secured endpoints.

    I

    The type of the identity.

    A

    The type of the authenticator.

  5. trait Environment[I <: Identity, A <: Authenticator] extends ExecutionContextProvider

    Permalink

    The environment needed to instantiate a Silhouette controller.

    The environment needed to instantiate a Silhouette controller.

    I

    The type of the identity.

    A

    The type of the authenticator.

  6. class EventBus extends ActorEventBus with SubchannelClassification

    Permalink

    An event bus implementation which uses a class based lookup classification.

  7. trait ExpirableAuthenticator extends Authenticator

    Permalink

    An authenticator that may expire.

  8. trait Identity extends AnyRef

    Permalink

    This trait represents an authenticated user.

  9. trait Logger extends AnyRef

    Permalink

    Implement this to get a named logger in scope.

  10. case class LoginEvent[I <: Identity](identity: I, request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published after an identity logged in.

    An event which will be published after an identity logged in.

    I

    The type of the identity.

    identity

    The logged in identity.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  11. case class LoginInfo(providerID: String, providerKey: String) extends Product with Serializable

    Permalink

    Represents a linked login for an identity (i.e.

    Represents a linked login for an identity (i.e. a local username/password or a Facebook/Google account).

    The login info contains the data about the provider that authenticated that identity.

    providerID

    The ID of the provider.

    providerKey

    A unique key which identifies a user on this provider (userID, email, ...).

  12. case class LogoutEvent[I <: Identity](identity: I, request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published after an identity logged out.

    An event which will be published after an identity logged out.

    I

    The type of the identity.

    identity

    The logged out identity.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  13. case class NotAuthenticatedEvent(request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published if a request did not pass authentication.

    An event which will be published if a request did not pass authentication.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  14. case class NotAuthorizedEvent[I <: Identity](identity: I, request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published if a request did not pass authorization.

    An event which will be published if a request did not pass authorization.

    I

    The type of the identity.

    identity

    The logged in identity.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  15. trait Provider extends AnyRef

    Permalink

    A marker interface for all providers.

  16. trait RequestProvider extends Provider

    Permalink

    A provider which can be hooked into a request.

    A provider which can be hooked into a request.

    It scans the request for credentials and returns the login info for it.

  17. trait SecuredErrorHandler extends AnyRef

    Permalink

    Can be mixed into the HttpErrorHandler object to define a global behaviour for unauthorized and forbidden endpoints.

  18. case class SignUpEvent[I <: Identity](identity: I, request: RequestHeader, messages: Messages) extends SilhouetteEvent with Product with Serializable

    Permalink

    An event which will be published after an identity signed up.

    An event which will be published after an identity signed up.

    I

    The type of the identity.

    identity

    The newly created identity.

    request

    The request header for the associated request.

    messages

    The messages for the current language.

  19. trait Silhouette[I <: Identity, A <: Authenticator] extends Controller with Logger with I18nSupport

    Permalink

    Provides the mechanisms that can be used to protect endpoints and retrieve the current user if available.

    Provides the mechanisms that can be used to protect endpoints and retrieve the current user if available.

    class MyController(
      val messagesApi: MessagesApi,
      val env: Environment[User, CookieAuthenticator])
      extends Silhouette[User, CookieAuthenticator] {
    
      def protectedAction = SecuredAction { implicit request =>
        Ok("Hello %s".format(request.identity.fullName))
      }
    }
    I

    The type of the identity.

    A

    The type of the authenticator.

  20. trait SilhouetteEvent extends AnyRef

    Permalink

    The base event.

  21. trait StorableAuthenticator extends Authenticator

    Permalink

    An authenticator which can be stored in a backing store.

Value Members

  1. object Authenticator

    Permalink

    The Authenticator companion object.

  2. object Authorization

    Permalink

    The companion object.

  3. object Environment

    Permalink

    The companion object.

  4. object EventBus

    Permalink

    A global event bus instance.

  5. object LoginInfo extends (String, String) ⇒ LoginInfo with Serializable

    Permalink

    The companion object of the login info.

  6. package exceptions

    Permalink

    Provides exceptions used by the API.

  7. package repositories

    Permalink

    Provides repositories used by the API to persist entities.

  8. package services

    Permalink

    Provides services used by the API to call external or internal services.

  9. package util

    Permalink

    Provides utilities used by the API.

Inherited from AnyRef

Inherited from Any

Ungrouped