All Projects → pac4j → Play Pac4j

pac4j / Play Pac4j

Licence: apache-2.0
Security library for Play framework 2 in Java and Scala: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...

Programming Languages

java
68154 projects - #9 most used programming language
scala
5932 projects

Projects that are alternatives of or similar to Play Pac4j

Spark Pac4j
Security library for Sparkjava: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 154 (-58.93%)
Mutual labels:  sql, mongodb, ldap, authentication, jwt, authorization, oauth, login, openid-connect, cas, social-login, saml, twitter, facebook
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+18.4%)
Mutual labels:  sql, mongodb, ldap, authentication, jwt, authorization, oauth, login, openid-connect, cas, social-login, saml, twitter, facebook
Spring Security Pac4j
pac4j security library for Spring Security: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 231 (-38.4%)
Mutual labels:  sql, mongodb, ldap, authentication, jwt, authorization, oauth, login, openid-connect, cas, social-login, saml, twitter, facebook
Spring Webmvc Pac4j
Security library for Spring Web MVC: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 110 (-70.67%)
Mutual labels:  sql, mongodb, ldap, authentication, jwt, authorization, oauth, login, openid-connect, cas, social-login, saml, twitter, facebook
Pac4j
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 2,097 (+459.2%)
Mutual labels:  play-framework, ldap, authentication, jwt, authorization, oauth, openid-connect, cas, saml
undertow-pac4j
Security library for Undertow: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 35 (-90.67%)
Mutual labels:  ldap, oauth, saml, login, authorization, cas, openid-connect, social-login
jax-rs-pac4j
Security library for JAX-RS and Jersey
Stars: ✭ 48 (-87.2%)
Mutual labels:  ldap, oauth, saml, login, authorization, cas, openid-connect, social-login
Authing
🔥Authing - IDaaS/IAM solution that can Auth to web and mobile applications.
Stars: ✭ 247 (-34.13%)
Mutual labels:  ldap, jwt, oauth, login, openid-connect, saml
Mern Boilerplate
Fullstack boilerplate with React, Redux, Express, Mongoose, Passport Local, JWT, Facebook and Google OAuth out of the box.
Stars: ✭ 112 (-70.13%)
Mutual labels:  mongodb, authentication, jwt, authorization, oauth
Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+513.6%)
Mutual labels:  jwt, oauth, login, twitter, facebook
Cloudfront Auth
An AWS CloudFront [email protected] function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
Stars: ✭ 471 (+25.6%)
Mutual labels:  authentication, jwt, authorization, login, openid-connect
Caddy Auth Portal
Authentication Plugin for Caddy v2 implementing Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication
Stars: ✭ 291 (-22.4%)
Mutual labels:  ldap, authentication, jwt, openid-connect, saml
Play Silhouette
Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 826 (+120.27%)
Mutual labels:  play-framework, authentication, oauth, cas
OpenAM
OpenAM is an open access management solution that includes Authentication, SSO, Authorization, Federation, Entitlements and Web Services Security.
Stars: ✭ 476 (+26.93%)
Mutual labels:  ldap, oauth, saml, authorization
Play Authenticate
An authentication plugin for Play Framework 2.x (Java)
Stars: ✭ 813 (+116.8%)
Mutual labels:  play-framework, authentication, oauth, facebook
Appy Backend
A user system to bootstrap your app.
Stars: ✭ 96 (-74.4%)
Mutual labels:  mongodb, authentication, authorization, login
Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (-10.4%)
Mutual labels:  authentication, oauth, login, facebook
Express Mongodb Rest Api Boilerplate
A boilerplate for Node.js apps / Rest API / Authentication from scratch - express, mongodb (mongoose).
Stars: ✭ 153 (-59.2%)
Mutual labels:  mongodb, authentication, jwt, authorization
Hackathon Starter Kit
A Node-Typescript/Express Boilerplate with Authentication(Local, Github, Facebook, Twitter, Google, Dropbox, LinkedIn, Discord, Slack), Authorization, and CRUD functionality + PWA Support!
Stars: ✭ 242 (-35.47%)
Mutual labels:  mongodb, authentication, twitter, facebook
Maxkey
MaxKey is Single Sign On(SSO) System,Leading-Edge Enterprise-Class open source IAM(Identity and Access management) product.
Stars: ✭ 274 (-26.93%)
Mutual labels:  jwt, oauth, cas, saml

The play-pac4j project is an easy and powerful security library for Play framework v2 web applications and web services which supports authentication and authorization, but also logout and advanced features like CSRF protection. It can work with Deadbolt. It's based on JDK 11 and Play 2.8 (Scala v2.12 or v2.13) and on the pac4j security engine v5. It's available under the Apache 2 license.

Several versions of the library are available depending on the version of the Play framework:

Play version pac4j version play-pac4j version
2.0 1.7 play-pac4j_java v1.1.x (Java) / play-pac4j_scala2.9 v1.1.x (Scala)
2.1 1.7 play-pac4j_java v1.1.x (Java) / play-pac4j_scala2.10 v1.1.x (Scala)
2.2 1.7 play-pac4j_java v1.2.x (Java) / play-pac4j_scala v1.2.x (Scala)
2.3 1.7 play-pac4j_java v1.4.x (Java) / play-pac4j_scala2.10 v1.4.x and play-pac4j_scala2.11 v1.4.x (Scala)
2.4 1.9 play-pac4j v2.3.x (Java & Scala)
2.5 2.x play-pac4j_2.11 and play-pac4j_2.12 v3.1.x (Java & Scala)
2.6 3.x play-pac4j_2.11 and play-pac4j_2.12 v7.0.x (Java & Scala) Do NOT use Play v2.6.3 and v2.6.5 which have issues in their Cache implementations!
2.7 3.x play-pac4j_2.11 and play-pac4j_2.12 v8.0.x (Java & Scala)
2.7 4.x play-pac4j_2.11 and play-pac4j_2.12 and play-pac4j_2.13 v9.0.x (Java & Scala)
2.8 4.x play-pac4j_2.12 and play-pac4j_2.13 v9.0.x (Java & Scala)
2.8 5.x play-pac4j_2.12 and play-pac4j_2.13 v11.0.x-PLAY2.8 (Java & Scala)

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 UI authentication while a direct client is for web services authentication:

▸ OAuth - SAML - CAS - OpenID Connect - HTTP - Google App Engine - Kerberos - LDAP - SQL - JWT - MongoDB - CouchDB - IP address - REST API

  1. An authorizer is meant to check authorizations on the authenticated user profile(s) or on the current web context:

▸ Roles / permissions - Anonymous / remember-me / (fully) authenticated - Profile type, attribute - CORS - CSRF - Security headers - IP address, HTTP method

  1. A matcher defines whether the security must be applied and can be used for additional web processing

  2. The Secure annotation and the Security trait protect methods while the SecurityFilter protects URLs 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

  3. The CallbackController finishes the login process for an indirect client

  4. The LogoutController logs out the user from the application and triggers the logout at the identity provider level

  5. The Pac4jScalaTemplateHelper can be used to get the user profile(s) from a Twirl template.

Usage

1) Add the required dependencies

2) Define:

- the security configuration

- the callback configuration, only for web applications

- the logout configuration

3) Apply security

4) Get the authenticated user profiles

Demos

Two demo webapps: play-pac4j-java-demo & play-pac4j-scala-demo are available for tests and implement many authentication mechanisms: Facebook, Twitter, form, basic auth, CAS, SAML, OpenID Connect, JWT...

Test them online: http://play-pac4j-java-demo.herokuapp.com and http://play-pac4j-scala-demo.herokuapp.com.

Versions

The latest released version is the Maven Central, available in the Maven central repository. The next version is under development.

See the release notes. Learn more by browsing the pac4j documentation and the play-pac4j_2.12 Javadoc / play-pac4j_2.13 Javadoc.

See the migration guide as well.

Need help?

You can use the mailing lists or the commercial support.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].