Giter Club home page Giter Club logo

magento-mod-onelogin's Introduction

Magento Admin - Onelogin integration (SAML)

Magento module that makes it possible to login to Magento Admin via Onelogin Identity provider

Magento versions support

Compatible with Magento CE 1.4+, Magento EE 1.9+

How does it work?

Module adds a link "Login via Onelogin" on backend login form. Following this links initiates series of redirects that are described by SAML 2.0 standart

User authenticates against onelogin.com application and then information about user email is sent to Magento. Magento authenticate user by email and let him in.

Usage

  1. You should create application in Onelogin.com

We are using "OneLogin SAML Test (IdP)" as a base. You can set Credentials as "Shared" and put Email you need to let all users login through one Magento account

You should copy two things:

  • application ID, which can be found in url: yourcompany.onelogin.com/apps/123456
  • X.509 certificate
  1. Now you can copy module to your Magento folder and configure it. Go to System->Configuration->Developer->Onelogin and put there the required settings.

  2. Flush Magento caches and you are done - you can now click on "Login via Onelogin" and see how magic happens

User auto-creation

You can enable Onelogin module to create users based on data supplied by IdP Just enable System->Configuration->Developer->Onelogin->Create user if not exists

You'll need to map fields in Magento to those in Onelogin. Common field names for the attributes are:

  • Username: User.Username
  • Email: User.email
  • First Name: User.FirstName
  • Last Name: User.LastName
  • Role: memberOf

If the required attributes are not provided by the IdP, the user account can’t be created. (if the account already exists, only the email is required to log in).

When creating a new account, Magento will try to map the Onelogin provided role to a Magento Role.

As soon as Magento role names might not be the same as Onelogin role names, module enables you to map them. You have three separate fields to map Magento-Onelogin pairs. You can map several Onelogin roles to single Magento role separating them with comas.

If the magento account does not have a “Magento Admin Role” like “Administrators”, then the user will not be allowed to access to the admin panel.

Credits

magento-mod-onelogin's People

Contributors

m-e-m-f-i-s avatar maxvoronov avatar mrvralex avatar pitbulk avatar werdan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento-mod-onelogin's Issues

Multistore?

We're getting set to try out this package. Would you be able to say if it's compatible with a multistore Magento configuration?

Possible secure issue with password

Module creates the users with a password
of "@@@NoPassword@@@". If you are getting the username from SAML
as well, you can login SSO-created users to the admin panel using
"@@@NoPassword@@@" as a password. Empty password works just fine and
won't let a user log in.

SAML w/ any IdP?

I am trying to modify this so that it will work with another SSO IdP (not onelogin). I am having no luck getting it to work, redirects to the IdP but it does not then forward to a valid URL. Ideally I would like it to function to simplesamlphp.

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.