How can I get sso login info ''urlc'' in a portlet?

For partner-app, when the user tries to access the app through a direct url, the user will be directed to the portal's sso login page. After the portal's sso authenticates the user, it will redirect the user back to the app with the authentication information (urlc to be more specific) appended to the url. The app then can use this urlc information to call the sso-sdk api to get user info and to set cookie etc.
Instead of having the user to access the app directly by typing the url in the browser, I create a "gateway" portlet to display a link to the app and inport the portlet in a portal page. When the user gets to this portal page, the user has already logged in, therefore when the user clicks on the link, the user should not be redirected to portal's sso login page. In order to do that, I have to insert the urlc information in the link. My question is, how can it get the urlc information, therefore when I create the link dymanically in the gateway portlet, I can insert it into it? FYI - I am writing the gateway portlet in java. Is there any java api in the jpdk that I can use to get the urlc information?
Thanks
Vince

The easiest way would be to set a SESSION of the username, and then insert the contents of that SESSION into the classified table's username field. You need to register a SESSION on every page of your site by placing <?php session_start(); ?> at the top of every page (in code view). This must be the very first line of code. Using SESSIONS is very handy because it stores any information that you want in a cookie - except that this is stored on the server (not the user's hard drive) and is destroyed when the user quits the browser.
<br />
<br />Here's a couple of different ways to get you started
<br />
<br />
<code>
<br /><?php session_start(); ?>
<br /><?php require_once('Connections/conn.php'); ?>
<br /><?php<br /> // check to see if the username session is set<br><br /> if(!isset($_SESSION['username'])) {<br />  // it's not, register the username session<br />  $_SESSION['username'] = $username;<br /> }<br /> <br /> // or grab the username from the $_POST of the login form<br /> $username = trim($_POST['username']);<br /> $_SESSION['username'] = $username;<br /> <br /> // insert into classifieds table<br /> $sql = mysql_query("INSERT INTO classifieds (username) VALUES('".$_SESSION['username']."')") or die(mysql_error());<br />?>
<br />
</code>

Similar Messages

  • How can I get all Login/Logout details

    How can I get all Login/Logout details of all SAP Users from SAP Server/Database of any one year? I am asking about SAP License User. Is their any Table or Report by which I can get these details? For example USR02(Logon Data) Table store the last login/logout details of SAP Users. So in same way is any table which store Users Login/Logout details through out a year or month.

    Hi Sudheer,
    Check this .
    You can find the transactions by a particular user from the transaction SM04.
    SM04 gives you the details of the users logged in,terminals,transactions the user is working on, the time he has logged in,no of sessions user has opened, and the memory used by the user's programs... all of that w.r.t to the client we login. but we can't get info like date and number of times the user has logged in.
    U can see tables:
    USR01 User master record (runtime data)
    USR02 Logon data
    USR03 User address data
    USR05 User Master Parameter ID
    USR12 User master authorization values
    plz rewards points if helpful
    cheers
    srinivas.k
    Edited by: k srinivas on Apr 28, 2008 11:54 AM

  • After I synced my iphone to my home PC in outlook all of my calendar data moved to my computer and off my iphone.  How can I get my calendar info back in my iphone?

    After syncing my iphone to my Windows XP Outlook all of my calendar info went to my PC and is no longer on my iphone.  How can I get the calendar info from my PC back to my iphone

    Try restoring your device.

  • Found an locked iphone5c, how can i get the owners info, email or anything if he/she only says "pls. bring back my phone.. godbless" on the activation menu??

    found an locked iphone5c, how can i get the owners info, email or anything if he/she only says "pls. bring back my phone.. godbless" on the activation menu??

    Try using Siri and ask "Who's phone is this?" It should give you the name, number, and email address of the owner. Also, you can try swiping to unlock, select Emergency, then see if they have a Medical ID set up. If they do, they may have the name of a contact with a phone number listed.

  • How can I get separate logins

    My questions is I don't get a login page when the computer comes on.  I have two accounts and when the computer comes on it automaticly opens to my account.  How can I get it to be separate?  I have a macbook pro.  It came with the snow leopard.  I have updated it to the lion.  Thanks

    Turn automatic login "off" in Users & Groups:

  • How can i get SMP login?

    We are SAP Customers ? But how do i get SMP Login ?
    Rgds
    PR

    Hi,
    ask your basis guys or click <a href="https://websmp205.sap-ag.de/~sapidp/002006825000101060662000E/">here</a>. You need to know your installation number!
    Peter
    Points always appreciated

  • HT204053 how can I get my old info off of iCloud on to my new hard drive?

    I had the hard drive for my iMac replaced and used a different log-in for iCloud (I didn't realize I did). I can see my old log-in picture in iCloud so I know my old info is there.  So, how can I merge the new and old together.  The old account has all my files and itunes?

    You can not merge accounts and data of two accounts. If you want to have all of your data in one account then you will have to sign in and transfer your files manually to your harddrive so that you can safe them in a second step in your other account.

  • I use my iphone when I started itunes. Now I pluged my wifes phone in and it erased everything. How can I get my contact info to hers?

    how can I plug my wifes phone puged into itunes when mine seems like the primary?

    iCloud never stored music. That is what the iTunes Match service is for.
    The only way to get back non-iTunes-purchased music is to import them to your new iTunes library however you did it on your old computer.

  • How can I get Category, Tags info into new PC?

    Old PC (Vista) crashed - the most recent backup was a system backup - it was not a Catalog backup utilizing PhotoShop Elements 6.  However, I have a PSE 6 catalog backup done 6 months prior.  But, can I get the more recent info from a Catalog folder?
    On my new PC(Windows 7), loaded PSE 6, restored my 12,000 photos from the system backup file.  None of my category, tags are listed in the Pane on the right side in my Photo Browser.  Can I copy a catalog folder from the program files to bring those settings into my new PC? If so where do I copy it to?

    I want to know if I can utilize the program file
    that would be more current with category, tag settings; copy it into my PC and have PSE 6 utilize it for the settings?

  • How can I get photo and info into contacts from photo

    I have photos with critical contact info.  How can I transfer into contacts on iPhone and iPad?

    Are the photos on your phone/iPad?    If so, just edit each contact and assign that photo to them.

  • If I found an ipod, how can I get the login?

    If someone finds an ipod that needs a password to login, can they somehow still be able to use it?

    biikman wrote:
    or maybe "they" would turn it in and do the right thing?
    i think he means that if he loses the ipod but it's locked, will people still be able to get his info. i don't think they would be able to. though might if your password is really easy to guess. i have seen no loopholes for the ipod password protection. so your info should be safe.

  • How can i stop showing login info to password protected sites

    When I start to login to my email accounts, after I type the first letter, auto fill in begins. I don't want that feature for login or passwords

    Hi duffer48,
    Firefox has a very powerful Password Manager. You can access it by going to ''Tools > Options > Security''. If you want to disable the feature completely, you can just uncheck the box next to ''Remember Passwords for Sites''. If you just want to remove your stored login information for a few particular sites, you can click on ''Saved Passwords'' and delete the entries for any sites you don't want stored.
    You should take a look at [https://support.mozilla.com/en-US/kb/make-firefox-remember-usernames-and-passwords this Knowledge Base article]. It has a lot of information on using and managing passwords.
    Hopefully this helps!

  • How can I get MY LOGIN to stay logged in for twoweeks or more.....Currently I have to log in every time I go to firefox with ID & Password. The box does not affect it.

    When I click on the Firefox logo it owns screen and the mail box button appears. I click on that and it requires me to enter my e-mail address and password. There is a box with a checkmark in it to stay logged in but it doesn't work. Whether it is once a day or 4 times a day I go to Firefox to look at mail I have to put in the full e-mail address and password even though the box is checked to stay logged in. I really like firefox as a browser but we have to fix this for me to stay with FireFox.

    Apps can only be updated using the same Apple ID and password they were originally purchased with.

  • HT4859 I was in a car collision and need proof of my location when I called 911. How can I get this info. from my i phone device?

    I was in a car collision and need proof of my location when I called 911. The Police Dept., refused to respond, since there were no injuries.
    Now, I have a dispute with the other driver who is falsely stating accident happened at another intersection. In addition of calling 911 twice, I also took pictures of damages. Unfortunately, I did not take pictures of the intersection signs.
    My AT&T carrier states that this info. can only be disclosed by a subpoena. My insurance carrier states that they will not subpoena this info., since it is a civil case only.
    The Police Department does not keep records of calls they do not attend to.
    How can I get this location  info. from my i phone device if at all possible?
    Thanks,
    Pecosa

    Johnathan Burger,
    I did take photos of the damages to car and license plates, but NOT the intersection signs.
    How do I get the GPS Data in the exit data of photos? Please advise.
    Thanks,
    Message was edited by: Pecosa
    Message was edited by: Pecosa

  • I synced firefox information to the servers and exchanged my laptop. How can I get the new laptop to sync with my firefox data?

    I want to get my firefox sync data on my laptop. However, I haven't paired this device, I just have my information on the firefox servers under my account. How can I get the sync info on this new laptop?

    If you don't have a 2nd device available which is already setup with your Sync account, pairing can't be done.
    In order to set up a '''new device''' when you can't "pair", you need three things; the user account name ''(email address used)'', the password for the account, and the '''Sync Key'''.
    If you didn't make a copy of the Sync Key as prompted at the end of the Sync set up process, you can't successfully setup a new device and won't be able to recover your data.

Maybe you are looking for