org.pac4j.http4s
Members list
Type members
Classlikes
Attributes
- Supertypes
Http4s Service to handle callback from after login
Http4s Service to handle callback from after login
This is required for web sites where a user logs in, get's redirected to another site to login (e.g. facebook, google etc) and then that site redirects the user back to the original site at a callback handled by this service.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
DefaultHttpActionAdapter sets the correct status codes on the response.
DefaultHttpActionAdapter sets the correct status codes on the response.
Attributes
- Supertypes
-
trait HttpActionAdapterclass Objecttrait Matchableclass Any
DefaultSecurityGrantedAccessAdapter gets called if user is granted access
DefaultSecurityGrantedAccessAdapter gets called if user is granted access
It should proceed to real request
Value parameters
- service
-
The http4s route that is being protected
Attributes
- Supertypes
-
trait SecurityGrantedAccessAdapterclass Objecttrait Matchableclass Any
Http4sCookieSessionStore is session implementation based on cookies.
Http4sCookieSessionStore is session implementation based on cookies.
All session data is kept in the client cookie (encrypted with the key specified in SessionConfig).
Attributes
- Companion
- object
- Supertypes
-
trait SessionStoreclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Http4sGenericSessionStore is a generic session implementation with configurable storage
Http4sGenericSessionStore is a generic session implementation with configurable storage
The cookie will just contain an id and the session data is kept server side in storage
.
Value parameters
- domain
-
Domain
cookie attribute - httpOnly
-
HttpOnly
cookie attribute - maxAge
-
Max-Age
cookie attribute - path
-
Path
cookie attribute - secure
-
Secure
cookie attribute
Attributes
- Supertypes
-
trait SessionStoreclass Objecttrait Matchableclass Any
Http4sWebContext is the adapter layer to allow Pac4j to interact with Http4s request and response objects.
Http4sWebContext is the adapter layer to allow Pac4j to interact with Http4s request and response objects.
Value parameters
- bodyExtractor
-
function to extract the body from F[]
- request
-
Http4s request object currently being handled
Attributes
- Companion
- object
- Supertypes
-
trait WebContextclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Http4sWebContext.type
Http4s Service to handle user logging out from the website
Http4s Service to handle user logging out from the website
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
SecurityFilterMiddleware is applied to all routes that need authentication and authorisation.
SecurityFilterMiddleware is applied to all routes that need authentication and authorisation.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Session Cookie Configuration
Session Cookie Configuration
Value parameters
- secret
-
16 bytes secret for cookie security
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Repository trait for customizing Http4sGenericSessionStore.
Repository trait for customizing Http4sGenericSessionStore.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class CacheSessionRepository[F]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SessionSyntax.type
Deprecated classlikes
Http4sCacheSessionStore is an in memory session implementation.
Http4sCacheSessionStore is an in memory session implementation.
The cookie will just contain an id and the session data is kept server side in cache
.
Note that as cache
is a simple Map, if multiple web servers are running sticky sessions will be required for this to work.
Value parameters
- domain
-
Domain
cookie attribute - httpOnly
-
HttpOnly
cookie attribute - maxAge
-
Max-Age
cookie attribute - path
-
Path
cookie attribute - secure
-
Secure
cookie attribute
Attributes
- Deprecated
-
[Since version 4.4.0]
- Supertypes
-
trait SessionStoreclass Objecttrait Matchableclass Any