Coder Social home page Coder Social logo

johannesboon / wso2-is-custom-logger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chanakaudaya/wso2-is-custom-logger

0.0 1.0 0.0 10 KB

This project contains implementation of a custom log publisher which prints session information to AUDIT log file

License: Apache License 2.0

Java 100.00%

wso2-is-custom-logger's Introduction

WSO2-IS-Custom-Logger

This project contains implementation of a custom log publisher which prints session information to AUDIT log file

Instructions to use

  • Clone the repository

  • Build the source code with maven (mvn clean install)

  • Copy the jar file created in /target directory to IS_HOME/repository/components/dropins directory

  • Enable the event publisher in IS_HOME/repository/conf/identity/identity.xml file

      <EventListener type="org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandler"
                     name="datapublisher.impl.CustomAuditLogger"
                     orderId="11" enable="true"/>
    
  • Restart the WSO2 Identity Server

  • Now enable SSO for an application as mentioned in below documentation (WSO2 IS documentation)[https://docs.wso2.com/display/IS541/Configuring+Single+Sign-On]

  • When you log into the travelocity.com application as mentioned in the above documentation, you will see a log entry within the IS_HOME/repository/logs/audit.log file similar to below text.

[2018-09-25 16:39:57,646] INFO {AUDIT_LOG}- Logging from custom logger - SessionID created :1031ee5a85ec54112991a2201619eaa6e449a1d03408cdb82739eb9a6ef0e744 for user : [email protected]

[2018-09-25 16:40:06,268] INFO {AUDIT_LOG}- Logging from custom logger - SessionID terminated :1031ee5a85ec54112991a2201619eaa6e449a1d03408cdb82739eb9a6ef0e744 for user : [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.