vertx-pac4j-core

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Categories

Categories

pac4j Security
GroupId

GroupId

org.pac4j
ArtifactId

ArtifactId

vertx-pac4j-core
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

vertx-pac4j-core
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://maven.apache.org

Download vertx-pac4j-core

How to add to project

<!-- https://jarcasting.com/artifacts/org.pac4j/vertx-pac4j-core/ -->
<dependency>
    <groupId>org.pac4j</groupId>
    <artifactId>vertx-pac4j-core</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.pac4j/vertx-pac4j-core/
implementation 'org.pac4j:vertx-pac4j-core:1.1.0'
// https://jarcasting.com/artifacts/org.pac4j/vertx-pac4j-core/
implementation ("org.pac4j:vertx-pac4j-core:1.1.0")
'org.pac4j:vertx-pac4j-core:jar:1.1.0'
<dependency org="org.pac4j" name="vertx-pac4j-core" rev="1.1.0">
  <artifact name="vertx-pac4j-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.pac4j', module='vertx-pac4j-core', version='1.1.0')
)
libraryDependencies += "org.pac4j" % "vertx-pac4j-core" % "1.1.0"
[org.pac4j/vertx-pac4j-core "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.pac4j : pac4j-core jar 1.7.0
com.fasterxml.jackson.core : jackson-core jar 2.5.1

provided (3)

Group / Artifact Type Version
org.pac4j : pac4j-oauth jar 1.7.0
org.pac4j : pac4j-oidc jar 1.7.0
io.vertx : vertx-core jar 2.1.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

The vertx-pac4j project is an easy and powerful security library for Vert.x 3 web applications and web services which supports authentication and authorization, but also application logout and advanced features like CSRF protection. It supports authentication and authorization, but also advanced features like session fixation and CSRF protection. It's based on Java 8, Vert.x 3.9 and on the pac4j security engine v4. 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 applications authentication while a direct client is for web services authentication:

▸ OAuth - SAML - CAS - OpenID Connect - HTTP - OpenID - 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 SecurityHandler must be applied and can be used for additional web processing

  2. The SecurityHandler 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

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

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

For vert.x 2 and previous, use vertx-pac4j 1.1.x - this codebase can be found at 1.1.x

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

Demo

The demo webapp: vertx-pac4j-demo is available for tests and implement many authentication mechanisms: Facebook, Twitter, form, basic auth, CAS, SAML, OpenID Connect, Strava, JWT...

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 vertx-pac4j Javadoc.

See the migration guide as well.

Need help?

If you need commercial support (premium support or new/specific features), contact us at [email protected].

If you have any questions, want to contribute or be notified about the new releases and security fixes, please subscribe to the following mailing lists:

org.pac4j

PAC4J

The security library for Java

Versions

Version
1.1.0