dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
翻譯準備中
使用 pac4j 保障 Java 應用程式的安全:在 Spring Boot 與其他框架中提供 OpenID Connect、SAML、CAS、OAuth 與 JWT 的驗證與授權
AI 翻譯
Secure Java applications with pac4j: authentication and authorization with OpenID Connect, SAML, CAS, OAuth and JWT across Spring Boot and other frameworks.
安全Java · ShellGitHub @pac4j上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Java 安全引擎(驗證、授權、多框架):OpenID Connect、SAML2、CAS、OAuth、LDAP、JWT…
AI 翻譯
Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Add the Spring MVC integration and the OpenID Connect module:
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>spring-webmvc-pac4j</artifactId>
<version>8.0.3</version>
</dependency>
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>pac4j-oidc</artifactId>
<version>6.5.9</version>
</dependency>
Then define your identity provider and the URLs to protect:
@Configuration
public class SecurityConfig extends Pac4jSecurityConfig {
@Bean
public Config config() {
final var oidc = new OidcConfiguration()
.setDiscoveryURI("https://www.casserverpac4j.dev/oidc/.well-known/openid-configuration")
.setClientId("myclient")
.setSecret("mysecret")
.setAllowUnsignedIdTokens(true); // only for this demo server
return new Config("http://localhost:8080/callback", new OidcClient(oidc));
}
@Override
public void addInterceptors(final InterceptorRegistry registry) {
addSecurity(registry, "OidcClient").addPathPatterns("/protected/**");
}
}
That's it: /protected/** now requires an OpenID Connect login, and the user profile is available through the ProfileManager.
Switching to Keycloak, Google or Microsoft Entra ID is a matter of changing the client:
read the full guide or run the demo.
| Framework | Get started |
|---|---|
| Spring Web MVC / Spring Boot | OpenID Connect guide |
| Spring Security / Spring Boot | OpenID Connect guide |
| Spring WebFlux / Spring Boot | OpenID Connect guide |
| Jakarta EE | OpenID Connect guide |
| Play 2.x / 3.x | SAML guide |
| Vert.x | CAS guide |
| Javalin | SAML guide |
| JAX-RS | OpenID Connect guide |
| Dropwizard | OpenID Connect guide |
| Spark Java | OpenID Connect guide |
| Undertow | OpenID Connect guide |
pac4j also powers the authentication delegation of Apereo CAS, Apache Syncope and Apache Knox.
| Login protocols | Credentials validation |
|---|---|
| OpenID Connect • SAML • CAS • OAuth • HTTP • Kerberos • OpenID4VP (EUDI wallet, eIDAS 2.0) | LDAP • SQL • JWT • MongoDB • IP address • REST API |
| User profile | Web request |
|---|---|
| Roles • Anonymous / remember-me / (fully) authenticated • Profile type, attribute | CORS • CSRF • Security headers • IP address, HTTP method |
OpenID Federation • OpenID for Verifiable Presentations (EUDI wallet, eIDAS 2.0)
| JDK | pac4j | Usage of Lombok |
|---|---|---|
| 17 | v6.x | Yes |
| 11 | v5.x | No |
| 8 | v4.x | No |
The latest released version is . The next version is under development. See the release notes.
This project is developed using various AI tools across multiple areas, including development, testing, and documentation.
Contributions are welcome: read the contribution guide to get started.
⭐ If pac4j is useful to you, please star this repository: it helps other developers discover it!
| Apache Shiro | CAS guide |
| Jooby • http4s • Ratpack • Lagom (archived) • Akka HTTP (archived) | Jooby • http4s • Ratpack • Lagom • Akka HTTP |