Skip to content

mpassid/shibboleth-idp-audit-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shibboleth IdP v3: Audit logging extensions

License Build Status Coverage Status

Overview

This module implements some audit logging extensions for [Shibboleth Identity Provider v3] (https://wiki.shibboleth.net/confluence/display/IDP30/Home). More precisely, the module offers a way to include the value of a specific attribute and/or used authentication flow identifier to the audit logging via AuditLoggingConfiguration.

Prerequisities and compilation

mvn package

After successful compilation, the target directory contains idp-profile-impl-audit-<version>.jar file.

Deployment

After compilation, the module's JAR-file must be deployed to the IdP Web application. Depending on the IdP installation, the module deployment may be achieved for instance with the following sequence:

cp target/idp-profile-impl-audit-<version>.jar /opt/shibboleth-idp/edit-webapp/WEB-INF/lib
cd /opt/shibboleth-idp
sh bin/build.sh

The final command will rebuild the war-package for the IdP application.

After deployment, the module can be configured in the /opt/shibboleth-idp/conf/audit.xml file. The following example shows how the configuration of two new fields to shibboleth.PostAssertionAuditExtractors (see AuditLoggingConfiguration):

  • %attrIdValue: The value of the attribute attributeId.
  • %authnFlowValue: The id of the the used authentication flow.
<bean id="shibboleth.PostAssertionAuditExtractors" parent="shibboleth.DefaultPostAssertionAuditExtractors" lazy-init="true">
    <property name="sourceMap">
        <map merge="true">
            <entry>
                <key>
                    <bean class="java.lang.String">
                        <constructor-arg value="attrIdValue"/>
                    </bean>
                </key>
                <bean class="fi.mpass.shibboleth.profile.audit.impl.AttributeValueAuditExtractor">
                    <constructor-arg value="attributeId"/>
                </bean>
            </entry>
            <entry>
                <key>
                    <bean class="java.lang.String">
                        <constructor-arg value="authnFlowValue"/>
                    </bean>
                </key>
                <bean class="fi.mpass.shibboleth.profile.audit.impl.AuthnFlowIdAuditExtractor"/>
            </entry>
        </map>
    </property>
</bean>

About

MPASS audit extensions for Shibboleth Identity Provider 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages