Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: portal - pass user id to external site

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default portal - pass user id to external site

    Is it possible to pass the user id to an external site?

    I have an external page that I have put into the portal

    This page requires a login

    What I'd like to do is pass the Sugar User ID to it then I can easily say that if it exists then skip password screen

    I wrote an index page to see what values come over

    <?php

    foreach ($_SESSION as $key=>$value){
    print "SESSION $key" . '=' . $value . "<br>\n";
    }

    foreach ($_REQUEST as $key=>$value){
    print "REQUEST $key" . '=' . $value . "<br>\n";
    }




    ?>
    All i get returned is REQUEST PHPSESSID=9ccf31450fd6d44bfde454c7e70bcccf

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: portal - pass user id to external site

    Any ideas?

    Is it possible?

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: portal - pass user id to external site

    Hi, Mike.

    I didn´t understand how will you access this external page. Is it through Sugar itself?

    Can you explain in more details?

    Thank you.

    Cheers

    André
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: portal - pass user id to external site

    Quote Originally Posted by andopes
    Hi, Mike.

    I didn´t understand how will you access this external page. Is it through Sugar itself?

    Can you explain in more details?

    Thank you.

    Cheers

    André
    I am calling the page using the portal

    It is a page where one of our customers can log support calls

    At the moment if one of our engineers clicks on the page via the portal they then have to login

    What I'd like to do is to pass the Sugar login details to the external page

    This way the page would be seamless with Sugar

    Hope that makes sense

  5. #5
    tellusmore is offline Senior Member
    Join Date
    Jun 2009
    Location
    Pittsburgh
    Posts
    60

    Default Re: portal - pass user id to external site

    BUMP

    I need to do the exact same thing.

  6. #6
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: portal - pass user id to external site

    Mike ... don't know if it helps but we use Joomla as the portal solution and synchronise user id, user name and password between sugar and joomla.

    drop me an email if we can help.

  7. #7
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: portal - pass user id to external site

    Hi Mike,
    It depends on just how external the other system is:

    1. if the access to the external system is authenticated by sugar then you should be able to share the session_id stored as phpsessid and pass that back as a cookie.

    2. if the access is authenticated by something other than the same sugar instance you will have to
    synchronise/relate usernames and passwords and post these to the login form (you could do this inviisbly
    with curl).

    Let us know
    Andrew

  8. #8
    tellusmore is offline Senior Member
    Join Date
    Jun 2009
    Location
    Pittsburgh
    Posts
    60

    Default Re: portal - pass user id to external site

    Quote Originally Posted by salesagility View Post
    Mike ... don't know if it helps but we use Joomla as the portal solution and synchronise user id, user name and password between sugar and joomla.

    drop me an email if we can help.
    this is not an answer!
    this is a forum not a lead source generation bulletin board.

    not to mention in the past i sent you an email for a bid and you ignored me!

    THANKS!

  9. #9
    tellusmore is offline Senior Member
    Join Date
    Jun 2009
    Location
    Pittsburgh
    Posts
    60

    Default Re: portal - pass user id to external site

    Mike here's this, no idea what it means, anyone?

    http://developers.sugarcrm.com/docs/...uide.1.46.html

  10. #10
    tellusmore is offline Senior Member
    Join Date
    Jun 2009
    Location
    Pittsburgh
    Posts
    60

    Angry Re: portal - pass user id to external site

    Here's a helpful bit of info the user id is an active session variable $_SESSION["authorized_user_id"]
    i'm unfamiliar with the method used to push variables to the html / tpl pages for instance modules/iFrame/iframe.php somehow creates a set of variables which are interpretted in the detailview.html via {IFRAME.ID} which displays the id. If the session variable could be added to the {IFRAME.make thiso one} then you could hard code the userid after the url, so the url would have to be

    http://www.thisisagreatforum.com/ind...ehaveananswer=

    this may not make much sense, but if you actually look at the code you'll see what i'm talking about.

    so close, everything is there, it's just a matter of syntax

    it's not upgrade friendly, but it's a matter of changing i'd say 2 lines on 2 files

    tried the vardefs, couldn't quite decipher the arrays they built. tried defining my own without luck.

    cmon forum, let's use our thinkers!

    growing ever more frustrated!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Log in external website through Portal
    By testere28 in forum Help
    Replies: 2
    Last Post: 2008-03-06, 02:57 PM
  2. what is group user and portal user
    By bmk in forum General Discussion
    Replies: 0
    Last Post: 2006-01-11, 09:37 AM
  3. 3.0 Portal Home (default page) Configuration
    By gatezone in forum General Discussion
    Replies: 3
    Last Post: 2005-06-16, 11:36 PM
  4. Portal Only User
    By johnstevens in forum General Discussion
    Replies: 2
    Last Post: 2005-03-04, 10:36 AM
  5. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •