Linking to CP with external Store(XML::API)

Discussion in 'Customization & Integration Showcase and Discussion' started by RickDijssel, Sep 7, 2012.

  1. RickDijssel

    RickDijssel Kilo Poster

    Messages:
    17
    He,

    We recently purchased PBAS but the built-in store is to complex for our market. Therefore we created a external Store using the Store XML API (SOAP) connection. The API works great but we got into a problem. We need to setup a link to the built-in Control Panel with single sign login. The API provides me with a cp session id but if i try something like example.com/cp?sid=$sidvalue i'm only getting a login screen. How do i setup this link so the customer is logged in?

    Kind regards,

    Rick van den Dijssel
     
  2. vbatraev

    vbatraev Odin Team

    Messages:
    346
    Hi Rick,

    The URL should be in the following format: http://my_server/cp/login.cgi?sid=$sidvalue

    Example of URL to a specific CP page:
    http://my_server/cp/login.cgi?sid=m...cp/index.cgi/subscription/summary/subscr_id,1)
    - logs customer by session id and opens a screen with subscription #1.

    Insert base 64 encoded string instead of "base64(xxx)" in the URL above.
    "sid" argument may be omitted if a customer is logged in already (has active session).
     
  3. RickDijssel

    RickDijssel Kilo Poster

    Messages:
    17
    Thanks this was helpfull
     

Share This Page