Giter Club home page Giter Club logo

shopware-hybrid-auth's Introduction

Shopware HybridAuth

Latest Stable Version Total Downloads License

  • Social Auth/ Login for Shopware
    • Required minimum Shopware version: 5.2
    • Required PHP version: 7.0

Product information

Make it easy for your customers to log onto the Shopware shop with the help of the social log-in!

Social login is a very useful feature used by many applications to get the user logged in easily via Facebook, Google, etc.

Give your customers the option to sign in via any social account with the help of the "SocialLogin" to your shop easily and conveniently with just one click.

Screenshot

New customer process

If the customer is not yet registered in your shop, he or she will be logged in after successful authentication against one of the social providers.

If the master data is no completed the user can fullfil them as usual in his account. In the case that the user wants to checkout without all master data shopware will prompt him to enter his data.

We have refrained from doing a seperate registration after social login, to prevent that the user leaves your shop due the complexity of the registration form.

Existing customer process

Users who are already a customer in your shop, as long as the social login cookie is still valid are automatically logged into the shop. If the cookie is not available, the customer can sign in to the shop through the social log-in. A new registration is not needed here.

Special Case "equal email addresses"

If the user logs in via Google and wants to log in later via Facebook an he has the same email address on both social providers we connect the identity from Facebook to the already existing Google customer account on the shopware system.

Special Case "passwort"

The password will be during the login process, because shopware needs a password for each user. Unfortunatly the user not know this password. The only way he can reset this is to click "Password Forgot?" and reset the passwort via email.

Logout process

If the user presses the "Logout button", we logout him from all social providers so that he should reauthenticate when visiting the shop againt. Logout from all providers does not mean logging him out from Facebook or Google - that is not possible ;-)

Installation

Zip Installation package for the Shopware Plugin Manager

  • Download the latest plugin version (e.g. Port1HybridAuth-1.3.0.zip)
  • Upload and install/ activate the plugin using the Plugin Manager

Git Version

  • Checkout Plugin in /custom/plugins/Port1HybridAuth
  • Change to directory and run composer install to install the dependencies
  • Install/ activate the plugin using the Plugin Manager

Install with composer

  • Change to your root installation of Shopware
  • Run command composer require --update-no-dev portrino/shopware-hybrid-auth and install/ activate the plugin using the Plugin Manager

Configuration

  • configuration takes completely place in shopware backend plugin config via plugin manager

General

Include FontAwesome

Include FontAwesome 4.7.0 (http://fontawesome.io/) from CDN to display nice icons for the social login buttons. Disable it if you already have included FontAweseome or want to override default styling.

Country Fallback

Select the country which should be used if the plugin cannout determine a country for the customer during social login. A country is mandatory for the customer so you should select a country here.

...we will optimize this process soon

Hybrid Auth

Debug Mode

You can choose one of the debug modes. The are the same as hybridauth library uses. You can read more about this here http://hybridauth.sourceforge.net/userguide/Debugging_and_Logging.html

Debug File

Enter the path where the debug file is located here.

Facebook

At first go to https://developers.facebook.com/ and register a new application.

  • Add new Application
  • Enter your information
  • Add Facebook Login
  • activate Client-OAuth-Anmeldung and Web-OAuth-Anmeldung
  • activate Browser Control Redirect
  • enter Valid OAuth Redirect URIs
    • this URL should look like:
  http://www.shopware-portrino.de/hybridauth?hauth_done=Facebook

Enabled

Set Facebook :: Enabled to Yes.

App-ID

Enter your App-ID, which you can find on your application dashboard into the field: "Facebook :: App-ID".

App-Secret

Enter your App-Secret, which you can find on your application dashboard into the field: "Facebook :: App-Secret".

Scope

Enter your custom scope in this textarea. More information can be found here: https://developers.facebook.com/docs/facebook-login/permissions .

! Clear the cache after you have made configuration changes

Google

At first go to https://console.developers.google.com/ and create a new application

  • Create Project
  • Wait until the project is created
  • Go to Credentials
  • Create Credentials
  • Create OAuth client ID
  • Enter OAuth consent screen data
  • Create client ID
    • Enter the Name you wish to use
    • Enter the Authorised redirect URIs
    • this URL MUST look like this:
  http://www.shopware-portrino.de/hybridauth?hauth_done=Google
  • store the client ID and client secret or copy it directly into your plugin configuration

  • Enable Google+ API in your API console

Enabled

Set Google :: Enabled to Yes.

Client-ID

Enter your Client-ID, which you can find on your application credentials section into the field: "Google :: Client-ID".

Clientkey

Enter your Clientkey, which you can find on your application credentials section into the field: "Google :: Clientkey".

Scope

Enter custom scopes to retrieve more or less information from google by adding them here. More information can be found here: https://developers.google.com/identity/protocols/googlescopes .

! Clear the cache after you have made configuration changes

Amazon

  • first of all you have to use SSL to get amazon social login working

At first go to https://sellercentral.amazon.com/gp/homepage.html and register a new application

  • Register new application
  • Enter your data
  • Go to "Web Settings"
  • Get the Client ID and the Client Secret
  • Enter the Allowed Return URLs
    • this URL MUST look like this:
  https://www.shopware-portrino.de/hybridauth?hauth.done=Amazon
  • store the client ID and client secret or copy it directly into your plugin configuration

Enabled

Set Amazon :: Enabled to Yes.

Client-ID

Enter your Client-ID, which you can find on your Web Settings section into the field: "Amazon :: Client-ID".

Client Secret

Enter your Client Secret, which you can find on your Web Settings section into the field: "Amazon :: Client Secret".

! Clear the cache after you have made configuration changes

LinkedIn

Enabled

Set LinkedIn :: Enabled to Yes.

At first go to https://www.linkedin.com/developer/apps/ and create a new application

  • Enter your data
  • Go to "Authentication"
  • Enter the Allowed Return URLs
    • this URL MUST look like this:
  https://www.shopware-portrino.de/hybridauth?hauth.done=LinkedIn
  • store the client ID and client secret or copy it directly into your plugin configuration

Client-ID

Enter your Client-ID, which you can find on your Web Settings section into the field: "Amazon :: Client-ID".

Client Secret

Enter your Client Secret, which you can find on your Web Settings section into the field: "Amazon :: Client Secret".

! Clear the cache after you have made configuration changes

Authors

  • André Wuttig - Initial work - aWuttig
  • Axel Böswetter - Bugfixes, Features - EvilBMP
  • Andreas Haubold - Documentation - ahaubold

See also the list of contributors who participated in this project.

shopware-hybrid-auth's People

Contributors

awuttig avatar evilbmp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

shopware-hybrid-auth's Issues

Linkedin login does not work

After signing in with linkedin, when I am being redirected to shopware page, showpare says that an error has occured.

Error on documentation for "hauth.done"

Hi,

I've detected a small thing on the documentation. To configure Google the example link should be http://www.shopware-portrino.de/hybridauth?hauth.done=Google using ( . ) instead of ( _ )

Thanks for this amazing plugin

Custom Provider

It would be nice to have a possibility too add an custom oauth provider. In our scenario we want to have drupal cms as an custom oauth provider.

Google Login Results in HTTP ERROR 500

I've enabled Google Login and wrote the customer id and key, however after signing in with google in responds with error 500 instead of opening the page.

update composer to hybridauth v3

Hi,

I think it would be useful to update to hybridauth lib to v3 version, since this one is newer and offers more possibilities, therefore also PSR-4 bindings.

Best Regards,

bmalpham8

Fatal error: Uncaught Doctrine\ORM\Query\QueryException | Facebook login

Hi,
Can't have the facebook login working. Everytime I try I get the error

Fatal error: Uncaught Doctrine\ORM\Query\QueryException: SELECT customers, attribute FROM Shopware\Models\Customer\Customer customers LEFT JOIN customers.attribute attribute WHERE attribute.facebookIdentity = ?1

I've checked the table s_user_attribute in the database and the facebook_identity field is there but the model doesn't seem to be updated, am I missing something during the installation?

Thanks :)

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.