Coder Social home page Coder Social logo

rhsso-push-notification-auth--spi's Introduction

rhsso-push-notification-authenticator-spi

This authentication SPI allows to implement 2factor authentication by sending verification code using Firebase on mobile applications

Pre-requiste

  • RHSSO instance

  • mvn 3.6.2+

  • java jdk 1.8

  • Firebase configuration

    • Provide Firebase Admin SDK, JSON-formatted file (service account credentials) and place it inside the project (eg: src/resources/META-INF/google)
    • Change the path and defaults in pushauthconstants.java

Build

mvn clean install

Deploy on RHSSO :

Add the jar to the rhsso server:
    $ cp target/rhsso-push-authenticator-jar-with-dependencies.jar _RHSSO_HOME_/providers/

Add two templates to the rhsso server:
    $ cp themes/push-notification-2fa _RHSSO_HOME_/themes/

Hot Deploy on RHSSO :

Add the jar to the rhsso server:
	mvn clean install wildfly:deploy
	
Add two templates to the rhsso server:
    $ cp themes/push-notification-2fa _RHSSO_HOME_/themes/

Configure RHSSO to use Push notification Two Factor Authentication.

  1. Create a new Realm (eg. Push 2FA)

  2. Under new Realm > Under Authentication > Flows:

    • Copy 'Browse' flow and set name as '2FA Push Browser' flow
    • Click on 'Actions > Add execution on the '2FA Push Browser Forms' line and add the 'Push notification - Firebase'
    • Set 'Push notification - Firebase' to 'REQUIRED'
  3. Under new Ream > Under Authentication > Bindings:

    • Select '2FA Push Browser' as the 'Browser Flow' for the REALM.
  4. Under new Ream > Themes:

    • Set Login theme as 'push-notification-2fa'.

rhsso-push-notification-auth--spi's People

Contributors

ph-shah avatar

Watchers

James Cloos avatar Prima avatar

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.