Giter Club home page Giter Club logo

zero-page-username-secret-auth-tree-node's Introduction

Zero-Page Username & Shared Secret Authentication Tree Node

A simple authentication node for ForgeRock's Identity Platform 5.5 and above. This node accepts a username and shared secret. Authentication succeeds if the user exists in the user datastore and the shared secret matches the configured value. This node may be useful in situations where authentication is handled by an external third-party service, but a corresponding SSO session is also needed for the user.

Installation

Copy the .jar file from the ../target directory into the ../web-container/webapps/openam/WEB-INF/lib directory where AM is deployed. Restart the web container to pick up the new node. The node will then appear in the authentication trees components palette.

Usage

Create an authentication tree incorporating this node, configure the names of headers in which the username and shared secret values are passed, and configure the shared secret value.

Since this node is zero-page, it can be called using only headers and no callbacks. For example:

curl -X POST -H "X-OpenAM-Username: demo" \
-H "X-OpenAM-SharedSecret: Wf52jaKV3lawzQySFc0YfQwuDRKjsv0LC" \
'http://openam.frdpcloud.com:8080/openam/json/authenticate?authIndexType=service&authIndexValue=Example'

To Build

The code in this repository has binary dependencies that live in the ForgeRock maven repository. Maven can be configured to authenticate to this repository by following the following ForgeRock Knowledge Base Article.

Edit the necessary ZeroPageUsernameSecretNode.java as appropriate. To rebuild, run "mvn clean install" in the directory containing the pom.xml

ScreenShot

Disclaimer

The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. ForgeRock does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in production configurations.

ForgeRock does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. ForgeRock disclaims all warranties, expressed or implied, and in particular, disclaims all warranties of merchantability, and warranties related to the code, or any service or software related thereto.

ForgeRock shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.

zero-page-username-secret-auth-tree-node's People

Contributors

bohocode avatar jonknightfr 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.