Code Monkey home page Code Monkey logo

magento-oxd-extension's Introduction

OpenID Connect Single Sign-On (SSO) Magento Extension By Gluu

image

Gluu's OpenID Connect Single Sign-On (SSO) Magento Extension will enable you to authenticate users against any standard OpenID Connect Provider (OP). If you don't already have an OP you can use Google or deploy the free open source Gluu Server.

Requirements

In order to use the Magento Extension you will need a standard OP (like Google or a Gluu Server) and the oxd server.

Installation

Disable cache

  1. Open menu tab System/Cache Management Management

  2. Check select all, set action on disable and click on submit button. submit

Download

Link to Magento marketplace

Github source.

Install extension

  1. Open menu tab System/Magento Connect/Magento Connect Manager Manager

  2. Choose downloaded file and click on upload button. upload

  3. See Auto-scroll console contents, if extension successfully installed return to admin panel.

####Extension will be automatically activated.

  1. Open menu tab OpenID Connect/ Open extension page GluuSSO

Configuration

General

In your Magento admin menu panel you should now see the OpenID Connect menu tab. Click the link to navigate to the General configuration page:

General

  1. Automatically register any user with an account in the OpenID Provider: By setting registration to automatic, any user with an account in the OP will be able to register for an account in your Magento site. They will be assigned the new user default role specified below.
  2. Only register and allow ongoing access to users with one or more of the following roles in the OP: Using this option you can limit registration to users who have a specified role in the OP, for instance magento. This is not configurable in all OP's. It is configurable if you are using a Gluu Server. Follow the instructions below to limit access based on an OP role.
  3. New Customer Default Group: specify which group to give to new customer upon registration.
  4. URI of the OpenID Provider: insert the URI of the OpenID Connect Provider.
  5. Custom URI after logout: custom URI after logout (for example "Thank you" page).
  6. oxd port: enter the oxd-server port (you can find this in the oxd-server/conf/oxd-conf.json file).
  7. Click Register to continue.

If your OpenID Provider supports dynamic registration, no additional steps are required in the general tab and you can navigate to the OpenID Connect Configuration tab.

If your OpenID Connect Provider doesn't support dynamic registration, you will need to insert your OpenID Provider client_id and client_secret on the following page.

General

To generate your client_id and client_secret use the Redirect URL for customer page: https://{site-base-url}/index.php/customer/account/login/?option=getOxdSocialLogin and Redirect URL for administrator page: https://{site-base-url}/index.php/admin/?option=getOxdAdminLogin.

If you are using a Gluu server as your OpenID Provider, you can make sure everything is configured properly by logging into to your Gluu Server, navigate to the OpenID Connect > Clients page. Search for your oxd id.

Enrollment and Access Management

  1. Navigate to your Gluu Server admin GUI.
  2. Click the Users tab in the left hand navigation menu.
  3. Select Manage People.
  4. Find the person(s) who should have access.
  5. Click their user entry.
  6. Add the User Permission attribute to the person and specify the same value as in the extension. For instance, if in the extension you have limit enrollment to user(s) with role = magento, then you should also have User Permission = magento in the user entry. See a screenshot example.
  7. Update the user record.
  8. Go back to the Magento extension and make sure the permission scope is requested (see below).
  9. Now they are ready for enrollment at your Magento site.

OpenID Connect Configuration

General

User Scopes

Scopes are groups of user attributes that are sent from the OP to the application during login and enrollment. By default, the requested scopes are profile, email, and openid.

To view your OP's available scopes, open a web browser and navigate to https://OpenID-Provider/.well-known/openid-configuration. For example, here are the scopes you can request if you're using Google as your OP.

If you are using a Gluu server as your OpenID Provider, you can view all available scopes by navigating to the OpenID Connect > Scopes interface inside the Gluu Server.

In the extension interface you can enable, disable and delete scopes.

Authentication

Bypass the local Magento customer login page and send users straight to the OP for authentication: Check this box so that when users attempt to login they are sent straight to the OP, bypassing the local Magento customer login screen. When it is not checked, users will see the following screen when trying to login: General

Bypass the local Magento administrator login page and send users straight to the OP for authentication: Check this box so that when users attempt to login they are sent straight to the OP, bypassing the local Magento administrator login screen. When it is not checked, users will see the following screen when trying to login: General

Select ACR: To signal which type of authentication should be used, an OpenID Connect client may request a specific authentication context class reference value (a.k.a. "acr"). The authentication options available will depend on which types of mechanisms the OP has been configured to support. The Gluu Server supports the following authentication mechanisms out-of-the-box: username/password (basic), Duo Security, Super Gluu, and U2F tokens, like Yubikey.

Navigate to your OpenID Provider configuration webpage https://OpenID-Provider/.well-known/openid-configuration to see supported acr_values.

In the Select acr section of the extension page, choose the mechanism which you want for authentication. If the Select acr value in the extension is none, users will be sent to pass the OP's default authentication mechanism.

magento-oxd-extension's People

Contributors

karapetyan88 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

nanbo99 arx76

magento-oxd-extension's Issues

All the user list?

Hi @dollar007,

In Gluu server, how can I view all the users who are in "Manage people"
Currently I have to search for each user's name or email.

How can I see all the user list?

internal_error : Internal server error occurs

Hi,

After following the instructions in the readme file. I am getting this message.

  1. Gluu server is installed and working
  2. Magento extension is installed and working
  3. I have run the oxd-server and its running without any errors.

But when I click on NEXT in the magento extension I get this error

"internal_error : Internal server error occurs"

Can you tell me what wrong?

Much appreciated!

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.