Coder Social home page Coder Social logo

rhsso-sms-authenticator-spi's Introduction

rhsso-sms-authenticator-spi

This authentication SPI allows to implement 2factor authentication by sending verification code as SMS using Twilio on mobile device

Pre-requiste

  • RHSSO instance

  • mvn 3.6.2+

  • java jdk 1.8

  • Twilio configuration - AccountID, Token and FromPhoneNumber

    • Provide Twilio configuration as part of RHSSO SPI configuration

Build

mvn clean install

Deploy on RHSSO instance running on openshift:

Login to cluster:

    oc login  <<cluster url >> -u <<username>> -p <<password>>

Get the SSO POD

  oc get pods -n <<sso-project=namespace>>

Add the jar to the rhsso server:
    $ oc cp target/rhsso-sms1-authenticator-jar-with-dependencies.jar <<sso-pod-name>>:/opt/eap/standalone/deployments

Add two templates to the rhsso server:
    $ cp themes/rhsso/login <<sso-pod-name>>:/opt/eap/themes/rhsso/login

Hot Deploy on RHSSO running locally:

Add the jar to the rhsso server:
	mvn clean install wildfly:deploy
	
Add two templates to the rhsso server:
    $ cp cp themes/rhsso/login _RHSSO_HOME_/themes/rhsso/login

Configure RHSSO to use SMS as Two Factor Authentication.

  1. Login to RHSSO Admin Console

  2. Select or Create a new Realm (eg. SMS 2FA).

  3. Under the selected realm > Authentication > Flows:

    • Copy ‘Browser’ Flow and set name as ‘SMS Browser Flow’.
    • Under the new flow, set the auth execution Actions > Add execution > Select ‘SMS Twilio’
    • Under the new flow, set ‘SMS Twilio’ as Required.
    • Set Configuration for the SMS Browser flow by clicking on “Actions > Config” dropdown.
  4. Under the selected realm > Authentication > Bindings, select ‘SMS Browser Flow’ as the browser flow for the realm

  5. Under the selected realm > Themes, set login theme as dafm-theme or the theme where you copied the above templates.

  6. Create a client for the mobile/web application.

rhsso-sms-authenticator-spi's People

Contributors

ph-shah avatar

Watchers

James Cloos avatar Prima avatar

Forkers

benswain sansow

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.