Coder Social home page Coder Social logo

custombasicauthenticator's Introduction

CustomBasicAuthenticator

This custom authenticator will add new claims to the authenticated user.

  1. Stop the server if it is already running
  2. Build the project using following command mvn clean install
  3. Copy the jar file org.wso2.custom.authenticator.local-1.0-SNAPSHOT.jar from the target directory to <IS_HOME>/repository/components/dropins folder
  4. Start the server
  5. Create custom local claim called http://test.wso2.org/claims/customname and mapped to an attribute which is available in your user store.
  6. Then mapped this claims to an oidc claim.
  7. Don’t forget to add the oidc claims to the registry.
  8. Add a service provider by selecting the requested claim as "http://test.wso2.org/claims/customname"
  9. select Local & Outbound Authentication Configuration and choose BasicCustom as the authenticator.
  10. Get an id token for this service provider by authenicating through BasicCustom
  11. Parse the id token using [1], now you could able to see the claim keplerNumber as a json attribute.

Refer [2] understand the implementations details.

[1] https://jwt.io/

[2] https://medium.com/@nilasini/sso-within-two-sps-while-using-a-custom-authenticator-and-a-custom-claim-handler-wso2is-5-3-0-bd473361ddf6

custombasicauthenticator's People

Contributors

nilasini avatar

Watchers

 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.