esurov / openfire-auth

Openfire plugin that provides custom authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This plugin enables custom authentication functionality for the Openfire chat servers. Authentication is JWT based, hence the plugin is self-contained.

It has other resources like clustering config file examples and a sql script to initialize the Openfire server settings.

The plugin implements JWT RS256 algorithm (private/public key). The JWT token should be passed instead of the user's password during the authentication.

It expects users to be stored in Redis (this part may be not used) and supports Hazelcast for Openfire caching.

Installation

  1. Build with maven and copy the assembly jar from project target into the openfire/lib directory
  2. Configure openfire/conf/openfire.xml
	<provider>
  		<auth>
  			<className>org.jivesoftware.openfire.auth.HybridAuthProvider</className>
  		</auth>
  	</provider>
	<hybridAuthProvider>
  		<primaryProvider>
  			<className>org.jivesoftware.openfire.auth.DefaultAuthProvider</className>
  		</primaryProvider>
  		<secondaryProvider>
  			<className>com.i7.openfire.auth.AppAuthProvider</className>
  		</secondaryProvider>
  	</hybridAuthProvider>
  1. Set the public key path in the i7.key.path property (see and example in the src/main/resources/properties.sql)

About

Openfire plugin that provides custom authentication

License:GNU General Public License v3.0


Languages

Language:Java 100.0%