Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 5    Views: 85

Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
12/22/12 09:47 PM (11 years ago)

Data returned from authorisation PHP script (userGuid,userEmail etc) available later?

As part of the login process, I am returning the values specified on the documentation. {"result":{"status":"valid","userGuid":"12345","userDisplayName":"John Smith", "userEmail":"[email protected]"}} Are these field values available to pass back to other processes within BT? (Can I put &userDisplayName on a custom URL later.) I figured they would, or why else return them, except they don't seem to hold values when I pass them out later.
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
12/22/12 09:59 PM (11 years ago)
Here's what is being passed by in my php script... {"result":{"status":"valid","userGuid":"1","userDisplayName":"Graham Scott", "userEmail":"[email protected]"}} Obviously I can go and reread the user database with the login info that is available, or I can pass the ID across php's, but that isn't too secure. Cheers. Graham.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
12/23/12 07:46 AM (11 years ago)
Hey @Fingers Crossed, You can def. pass the ID but I'm not sure what exactly your asking about the login? LA
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
12/23/12 07:51 AM (11 years ago)
I know I can pass the login and the password, according to the docs you can pass back the fields above e.g.: userDisplayName. I want to use the returned fields in another custom url. eg: Showorder.php?&Name=[userDisplayName]
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
12/23/12 07:53 AM (11 years ago)
Yes just link the two urls. LA
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
12/23/12 08:07 AM (11 years ago)
Never mind..lol it's early here..I get what your saying. LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.