Openfire auth provider and authorization mapping for Volunteers
./gradlew build
-
Copy the
openfire-volunteers-auth-provider.jarinto the Openfirelibdirectorycp build/libs/openfire-volunteers-auth-provider.jar /usr/lib/openfire/ -
Configure Openfire to use Volunteers auth provider and mapping
Property Value mappedAuthProvider.mapper.classNameru.ifmo.neerc.volunteers.openfire.VolunteersAuthProviderMapperprovider.auth.classNameorg.jivesoftware.openfire.auth.MappedAuthProviderprovider.authorization.classListru.ifmo.neerc.volunteers.openfire.VolunteersAuthorizationPolicy org.jivesoftware.openfire.auth.DefaultAuthorizationPolicyprovider.authorizationMapping.classListru.ifmo.neerc.volunteers.openfire.VolunteersAuthorizationMapping org.jivesoftware.openfire.auth.DefaultAuthorizationMappingWith this configuration Volunteers auth provider is used for Volunteers users only. Openfire users can be authenticated even is Volunteers API is inaccessible.
-
Restart Openfire
| Property | Description | Default |
|---|---|---|
volunteers.url |
Volunteers URL | http://localhost:8080 |
volunteers.token |
Volunteers API Token | |
volunteers.year |
Year ID | 1 |
volunteers.day |
Day ID | 1 |
Openfire must be restarted after any configuration changes