Git Product home page Git Product logo

identity-local-auth-magiclink's Introduction

identity-local-auth-magiclink

Magic link authenticator for WSO2 Identity Server

Download the source code from here

Navigate to the folder you just downloaded, which contains the pom.xml file and build the source code by running the following command on your terminal.

$ mvn clean install

Copy the org.wso2.carbon.identity.application.authenticator.magiclink-1.0.0.jar file found inside the target folder and paste it in the <IS_HOME>/repository/components/dropins folder.

Configuring Magic Link Authenticator

This section provides the instructions to configure Magic Link Authenticator in WSO2 Identity Server (WSO2 IS). The Magic Link Authentication is a password-less authentication implemented by sending an embedded token via a link in email.

Enabling configurations on WSO2 IS

Follow the steps below to configure WSO2 IS to send email once the Magic Link Authenticator is enabled.

  1. Shut down the server if it is running.

  2. Add the following properties to the deployment.toml file in the IS_HOME/repository/conf folder to configure the email server.

         [output_adapter.email]
         from_address= "[email protected]"
         username= "wso2iamtest"
         password= "Wso2@iam70"
         hostname= "smtp.gmail.com"
         port= 587
         enable_start_tls= true
         enable_authentication= true
    
  3. Add the following configurations to the <IS_HOME>/repository/conf/identity/application-authentication.xml file under the section.

     <AuthenticatorConfig name="MagicLinkAuthenticator" enabled="true">     
        <Parameter name="ExpiryTime">300</Parameter>
     </AuthenticatorConfig>
    

    Hint : Edit the file <IS_HOME>/repository/resources/conf/templates/repository/conf/identity/application-authentication.xml.j2

  4. Create the magic_link_notification.jsp file by copying the code in this file and add the file inside the <IS_HOME>/repository/deployment/server/webapps/authenticationendpoint

  5. Add the following configurations inside <IS_HOME>/repository/deployment/server/webapps/authenticationendpoint/WEB-INF/web.xml

         <servlet>
            <servlet-name>magic_link_notification.do</servlet-name>
            <jsp-file>/magic_link_notification.jsp</jsp-file>
         </servlet>
    
        <servlet-mapping>
            <servlet-name>magic_link_notification.do</servlet-name>
            <url-pattern>/magic_link_notification.do</url-pattern>
        </servlet-mapping>
    

7.Start WSO2 IS

identity-local-auth-magiclink's People

Contributors

wso2-jenkins-bot avatar yoshani avatar ashensw avatar thukaraka avatar piraveena avatar sahandilshan avatar anandi-k avatar janakamarasena avatar sandushi avatar thamindudilshan avatar hwupathum avatar dmhp avatar nipunibhagya avatar shanchathusanda93 avatar chamathns avatar madurangasiriwardena avatar maheshika avatar thamindur avatar yasinmiran 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.