Index

A B C D E F I J K L O P R T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

ADMIN_PASSWORD - Static variable in class org.pac4j.testkit.TestConstants
 
ADMIN_USERNAME - Static variable in class org.pac4j.testkit.TestConstants
 
API_KEY - Static variable in class org.pac4j.testkit.TestConstants
 
ApiKeyScenarios - Class in org.pac4j.testkit
Pre-assembled HTTP test scenarios for API key (direct client) authentication.

B

basicConfig() - Static method in class org.pac4j.testkit.TestConfigs
HTTP Basic authentication.
BasicScenarios - Class in org.pac4j.testkit
 

C

CALLBACK_PATH - Static variable in class org.pac4j.testkit.TestConstants
 
cookieConfig() - Static method in class org.pac4j.testkit.TestConfigs
Cookie-based session backed by JWT.
CookieScenarios - Class in org.pac4j.testkit
 

D

directConfig() - Static method in class org.pac4j.testkit.TestConfigs
API key via X-Api-Key header.

E

expiredToken() - Static method in class org.pac4j.testkit.TestTokens
JWT that is structurally valid but already expired (exp = 1 hour ago).

F

formConfig() - Static method in class org.pac4j.testkit.TestConfigs
Form-based authentication with username/password POST.
FormScenarios - Class in org.pac4j.testkit
Pre-assembled HTTP test scenarios for form-based authentication.

I

invalidToken() - Static method in class org.pac4j.testkit.TestTokens
Garbage string that fails JWT parsing.

J

jwtConfig() - Static method in class org.pac4j.testkit.TestConfigs
JWT via Authorization: Bearer token header.
JwtScenarios - Class in org.pac4j.testkit
Pre-assembled HTTP test scenarios for JWT (Bearer token) authentication.

K

keyPair() - Static method in class org.pac4j.testkit.TestTokens
The RSA key pair used by both TestTokens and TestConfigs.jwtConfig().

L

LOGIN_PATH - Static variable in class org.pac4j.testkit.TestConstants
 
LOGOUT_PATH - Static variable in class org.pac4j.testkit.TestConstants
 

O

oauthConfig(String) - Static method in class org.pac4j.testkit.TestConfigs
OAuth2/OIDC authorization code flow via mock-oauth2-server.
OAuthScenarios - Class in org.pac4j.testkit
Pre-assembled HTTP test scenarios for OAuth2/OIDC authorization code flow.
org.pac4j.testkit - package org.pac4j.testkit
 

P

PASSWORD - Static variable in class org.pac4j.testkit.TestConstants
 
PROTECTED_ADMIN_PATH - Static variable in class org.pac4j.testkit.TestConstants
 
PROTECTED_PATH - Static variable in class org.pac4j.testkit.TestConstants
 

R

ROLE_ADMIN - Static variable in class org.pac4j.testkit.TestConstants
 
ROLE_USER - Static variable in class org.pac4j.testkit.TestConstants
 
runAdminAccess(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected/admin with admin JWT -> 200
runAdminDenied(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected/admin with user (non-admin) JWT -> 403
runAuthorizationCodeFlow(String, MockOAuth2Server) - Static method in class org.pac4j.testkit.OAuthScenarios
Full authorization code flow: GET /protected -> redirect to IdP -> follow redirects through authorize -> callback -> /protected -> 200
runBadCredentials(String) - Static method in class org.pac4j.testkit.BasicScenarios
 
runBadCredentials(String) - Static method in class org.pac4j.testkit.FormScenarios
POST /login with wrong password -> redirect to /login?error
runBadKey(String) - Static method in class org.pac4j.testkit.ApiKeyScenarios
 
runExpiredToken(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected with expired JWT -> 401
runHappyPath(String) - Static method in class org.pac4j.testkit.ApiKeyScenarios
 
runHappyPath(String) - Static method in class org.pac4j.testkit.BasicScenarios
 
runHappyPath(String) - Static method in class org.pac4j.testkit.CookieScenarios
 
runHappyPath(String) - Static method in class org.pac4j.testkit.FormScenarios
POST /login with valid credentials, follow redirect to /protected -> 200
runHappyPath(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected with valid JWT -> 200
runInvalidToken(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected with garbage token -> 401
runLogout(String) - Static method in class org.pac4j.testkit.CookieScenarios
 
runMissingAuth(String) - Static method in class org.pac4j.testkit.BasicScenarios
 
runMissingKey(String) - Static method in class org.pac4j.testkit.ApiKeyScenarios
 
runMissingToken(String) - Static method in class org.pac4j.testkit.JwtScenarios
GET /protected with no token -> 401
runRedirectWhenUnauthenticated(String) - Static method in class org.pac4j.testkit.FormScenarios
GET /protected with no session -> redirect to /login
runUnauthenticatedRedirect(String, String) - Static method in class org.pac4j.testkit.OAuthScenarios
Verify unauthenticated access redirects to the IdP's authorize endpoint.

T

TestConfigs - Class in org.pac4j.testkit
Provides standard pac4j Config objects for each authentication mechanism.
TestConstants - Class in org.pac4j.testkit
Mandated paths, test credentials, and role constants shared by all scenarios and configs.
TestTokens - Class in org.pac4j.testkit
Creates valid, expired, and invalid JWT tokens using a hardcoded RSA key pair.

U

USERNAME - Static variable in class org.pac4j.testkit.TestConstants
 

V

validAdminToken() - Static method in class org.pac4j.testkit.TestTokens
JWT for user "admin" with ROLE_ADMIN, valid for 1 hour.
validUserToken() - Static method in class org.pac4j.testkit.TestTokens
JWT for user "testuser" with ROLE_USER, valid for 1 hour.
A B C D E F I J K L O P R T U V 
All Classes and Interfaces|All Packages|Constant Field Values