{"repo":"pac4j/dropwizard-pac4j","free":true,"listed":false,"github":"https://github.com/pac4j/dropwizard-pac4j","clone":"git clone https://github.com/pac4j/dropwizard-pac4j.git","description":"A Dropwizard bundle for securing REST endpoints using pac4j","language":"Java","stars":28,"topics":["java","dropwizard","security","authentication","authorization","cas","oauth","saml","openid-connect","ldap"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"dropwizard-pac4j A Dropwizard bundle for securing REST endpoints using pac4j. dropwizard-pac4j JDK pac4j jax-rs-pac4j Dropwizard ------------------ ----- ------- -------------- ------------ version = 8 17 v6 v7 v5 version = 7 17 v5 v6 v5 version = 6 11 v5 v6 v4 version = 5.3 11 v5 v5 v3 version = 5 11 v4 v4 v2 version = 4 8 v4 v4 v1 version = 3 8 v3 v3 v1 Usage dropwizard-pac4j provides two components which must be integrated into applications: - A configuration factory populated by values from a pac4j section within an application's config file. - A Dropwizard bundle which: - connects the values defined in the pac4j configuration section to the jax-rs-pac4j and jee-pac4j libraries. - enables the use of the annotation provided by the jax-rs-pac4j library. - enables Jetty session management by default. Dependencies ( dropwizard-pac4j + pac4j- libraries) You need to add a dependency on: - the dropwizard-pac4j library ( groupId : org.pac4j , version : 8.0.0 ) - the appropriate pac4j submodules ( groupId : org.pac4j , version : 6.4.1 ): pac4j-oauth for OAuth support (Facebook, Twitter...), pac4j-cas for CAS support, pac4j-ldap for LDAP authentication, etc. All released artifacts are available in the Maven central repository. Installing the bundle Add the bundle within the application class' initialize method, just like any other bundle: It can be useful to store the bundle in its own field in order to be able to access pac4j configuration as shown at the end of the next section. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/pac4j","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pac4j/dropwizard-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."}