{"repo":"pac4j/spark-pac4j","free":true,"listed":false,"github":"https://github.com/pac4j/spark-pac4j","clone":"git clone https://github.com/pac4j/spark-pac4j.git","description":"Security library for Sparkjava: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...","language":"Java","stars":164,"topics":["java","sparkjava","security","authentication","authorization","cas","oauth","saml","openid-connect","ldap"],"license":null,"category":"auth-billing-email","readme_excerpt":"The spark-pac4j project is an easy and powerful security library for Spark Java web applications and web services which supports authentication and authorization, but also logout and advanced features like session fixation and CSRF protection. It's based on Java 17, Spark 2.9 and on the pac4j security engine v6 (6.2.2) . It's available under the Apache 2 license. Main concepts and components: 1) A client represents an authentication mechanism. It performs the login process and returns a user profile. An indirect client is for web application authentication while a direct client is for web services authentication: &#9656; OpenID Connect - SAML - CAS - OAuth - HTTP - LDAP - SQL - JWT - MongoDB - Kerberos - IP address - REST API 2) An authorizer is meant to check authorizations on the authenticated user profile(s) or on the current web context: &#9656; Roles / permissions - Anonymous / remember-me / (fully) authenticated - Profile type, attribute - CORS - CSRF - Security headers - IP address, HTTP method 3) A matcher defines whether the SecurityFilter must be applied and can be used for additional web processing 4) The SecurityFilter protects an URL by checking that the user is authenticated and that the authorizations are valid, according to the clients and authorizers configuration. If the user is not authenticated, it performs authentication for direct clients or starts the login process for indirect clients 5) The CallbackRoute finishes the login process for an indirect clie","default_branch":null,"files":null,"tree":[],"storefront":"/r/pac4j","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pac4j/spark-pac4j/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}