DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: TYPO3 - Magento AutoSignOn Plugin

Author:Michael Graute
Created:2012-04-12T11:48:32.540000000
Changed by:Michael Graute
Changed:2012-04-12T11:48:49.090000000
Classification:typo3, magento, sso
Author:OGVIT GmbH & Co. KG
Email:
Info 4:
URL:http://www.ogvit.de
Language:en

img-1 img-2 EXT: TYPO3 - Magento AutoSignOn Plugin - typo3, magento, sso

EXT: TYPO3 - Magento AutoSignOn Plugin

Extension Key: ogv_magento_auto_signon

Language:

Keywords:

Copyright 2000-2012, OGVIT GmbH & Co. KG, <>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

EXT: TYPO3 - Magento AutoSignOn Plugin 1

`Introduction 3 <#__RefHeading__457_1639029262>`_

What does it do? 3

Features of the Introduction Package 3

`Users manual 4 <#__RefHeading__465_1639029262>`_

FAQ 4

`Administration 5 <#__RefHeading__469_1639029262>`_

`Configuration 6 <#__RefHeading__473_1639029262>`_

Example configuration: 6

Reference 6

Introduction

What does it do?

The Magento Plugin provides hooks that manage a single sign on from your TYPO3 installation to a Magento webshop.When logging into the TYPO3 frontend a registered user will automatically be logged in to a Magento webshop running on the same domain. The plugin also provides hooks that will synchronize changes of frontend users of TYPO3 to Magento.

Features of the Introduction Package

  • Easy to install and configure
  • Just install the plugin, copy a php file into the root of your Magento installation, confiure some path variables and you're ready to go

Users manual

  • Install / Configure your frontend users and a frontend login
  • Install the plugin
  • Copy the file remotelogin.php (located at /typo3conf/ext/ogv_magento_auto_signon/remotelogin.php into the document root directory of your Magento installation (so that it's accessible via http://your-magento-shop.biz/rempotelogin.php)
  • Initially insert all existing frontend users of your TYPO3 as Magento customers (username and password have to be the same)

FAQ

  • Q: Do I have to synchronize all TYPO3 frontend users to Magento by hand?
  • A: No, just if you have frontend users that existed before the plugin was installed, you have to synchronize the manually once. All new fe- users will automatically be synchronized with Magento (see Configuration “magentoCreateUserFromTypo3” and “magentoUpdateUserFromTypo3”)
  • Q:It does not work?!
  • A: Be sure to copy the file /typo3conf/ext/ogv_magento_auto_signon/remotelogin.php to the document-root of your Magento installation. Also check if the path to this file and the path to the Magento API is set correctly in your configuration. Also you need to provide the user credentials for the Magento API User.

Administration

Just configure some paths in a TypoScript Configuration (see Configuration for details)

Configuration

Example configuration:

plugin.tx_ogvmagentoautosignon {

magentoPasswordHash = XY

magentoGroupId = 1

magentoStoreId = 0

magentoWebsiteId = 0

autoActivate = 1

magentoRemoteFile = http://mymagentoshop.com/remotelogin.php

magentoApiUrl = http://mymagentoshop.com/api/soap/?wsdl

magentoApiUser = apisuer

magentoApiPassword = apipassword

cookieDomain = null

cookiePath = /

cookieExpire = 0

magentoCookieName = frontend

cryptoPass = abcdefg

magentoDefaultBillingAddress = 1

magentoDefaultShippingAddress = 1

magentoCreateUserFromTypo3 = 1

magentoUpdateUserFromTypo3 = 1

magentoCreateUserFromFeUserRegister = 0

magentoUpdateUserFromFeUserRegister = 0

}

Reference

magentoPasswordHash

Property

magentoPasswordHash

Data type

String

Description

A Hash for encryption of the Magento user password

Default

XY

magentoGroupId

Property

magentoGroupId

Data type

Integer

Description

The Magento usergroup the customer is in

Default

1

magentoStoreId

Property

magentoStoreId

Data type

Integer

Description

The Magento store id the customer is in

Default

0

magentoWebsiteId

Property

magentoWebsiteId

Data type

Integer

Description

The Magento website id the customer is in

Default

0

autoActivate

Property

autoActivate

Data type

Integer

Description

Should the user automatically be activated in Magento

Default

1

magentoRemoteFile

Property

magentoRemoteFile

Data type

Integer

Description

Path to remotelogin.php

Default

magentoApiUrl

Property

magentoApiUrl

Data type

String

Description

Path to Magento API

Default

magentoApiUser

Property

magentoApiUser

Data type

String

Description

The username of your Magento API-User

Default

magentoApiPassword

Property

magentoApiPassword

Data type

String

Description

The passowrd of your Magento API-User

Default

cookieDomain

Property

cookieDomain

Data type

String

Description

The domain the session cookie will be registered to

Default

null

cookiePath

Property

cookiePath

Data type

String

Description

The path the session cookie will be registered to

Default

/

cookieExpire

Property

cookieExpire

Data type

String

Description

How long will the cookie be valid

Default

0

magentoCookieName

Property

magentoCookieName

Data type

String

Description

The name of the Magento session cookie (frontend for Magento > 1.4)

Default

frontend

cryptoPass

Property

cryptoPass

Data type

String

Description

Not used right now ...

Default

abcdef

magentoDefaultBillingAddress

Property

magentoDefaultBillingAddress

Data type

Integer

Description

Should the customer's address be set as default billing address in Magento?

Default

1

magentoDefaultShippingAddress

Property

magentoDefaultShippingAddress

Data type

Integer

Description

Should the customer's address be set as default shipping address in Magento?

Default

1

magentoCreateUserFromTypo3

Property

magentoCreateUserFromTypo3

Data type

Integer

Description

Should new frontend users automatically be created in Magento?

Default

1

magentoUpdateUserFromTypo3

Property

magentoUpdateUserFromTypo3

Data type

Integer

Description

Should updates to frontend users automatically be synchronized with Magento?

Default

1

magentoCreateUserFromFeUserRegister

Property

magentoCreateUserFromFeUserRegister

Data type

Integer

Description

Should new frontend users created by fe_userregister automatically be created in Magento? (Only applies if fe_userregister is installed)

Default

0

magentoUpdateUserFromFeUserRegister

Property

magentoUpdateUserFromFeUserRegister

Data type

Integer

Description

Should new frontend users updated by fe_userregister automatically be created in Magento? (Only applies if fe_userregister is installed)

Default

0

7