Expand my Community achievements bar.

SOLVED

Need Help! External Authentication via PHP doesn't Working!

Avatar

Former Community Member

Hi! I am new to LCCS as well as PHP, currently developing LCCS based collaboration service. Since here is Korea,  it is too hard to develop due to lack of reference materials.

I've been developed authentication server via PHP and seems to work well.(Managementing Rooms and Getting Token from adobe is working well)

But the mxml file does not working... I think I did something wrong or didn't done something.

Tried to find solutions over a week, but still not working ㅠ.ㅠ

Have added amfphp to web-root folder and placed lccs.php, rtchooks.php to the recommended folders(did not modified both files' codes)

Just Assumed that It is too hard for me to explain all of situation by text, I attached my problem & development environment information as follow,

Please Help!

1. FLEX returns following errors when debugging.

     (1) At Console

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/error1.png

     (2) At Debughttp://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/error2.png

2. Part of My FLEX Codes [Imported Methods, Authentication Related Codes]

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/flexcode_import.png

                                                                                                .......................................................

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/flexcode_var.png

                                                                                          .......................................................

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/flexcode_auth.png

3. My FLEX Project Structure

project structure.png

4. Authentication Related PHP Site Script [http://cadcam.yonsei.ac.kr/services/cdf_gc/authentication  |  ID : test, PW : test11]

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/phpcode.png

5. Site Structure

http://cadcam.yonsei.ac.kr/filestorage/uploads/lccs_qna/sitestructure.jpg


And using IIS7 Server[w/ COMODO SSL Certificate]

Please let me know if there are more required information for answering!

Your little help will be great movement for me!

Many Appreciations for your help in advance!

Sungmin Kim

Master Candidate, Mechanical Engineering

1 Accepted Solution

Avatar

Correct answer by
Employee

There error you are getting and the debug message right before ( requestInfo null?guk=.... ) makes me think you are not passing the room URL correctly (maybe you are passing the account URL but not the room) so I would start checking that first.

Also, I am not sure what you are trying to do with "registerHook" in your PHP code. registerHook is used if you want to get notifications in your PHP application associated to client accessing your room ( receive user login / logout messages, room start / stop or even user posting chat messages).

You are calling registerHook with an authentication token, that is not needed. Also you are passing a local (relative) URL, that means will never call you. And finally you are creating a new RTCAccount object and logging in again (the $rtc stuff) when you already have an active account ($am).

So, I would remove all the registerHook stuff and concentrate on what parameters the Flex application is receiving.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

There error you are getting and the debug message right before ( requestInfo null?guk=.... ) makes me think you are not passing the room URL correctly (maybe you are passing the account URL but not the room) so I would start checking that first.

Also, I am not sure what you are trying to do with "registerHook" in your PHP code. registerHook is used if you want to get notifications in your PHP application associated to client accessing your room ( receive user login / logout messages, room start / stop or even user posting chat messages).

You are calling registerHook with an authentication token, that is not needed. Also you are passing a local (relative) URL, that means will never call you. And finally you are creating a new RTCAccount object and logging in again (the $rtc stuff) when you already have an active account ($am).

So, I would remove all the registerHook stuff and concentrate on what parameters the Flex application is receiving.

Avatar

Former Community Member

Thanks for kind reply Raff,

Sorry but I could not cleary understand "passing the room URL correctly". [English is not my mother language, sorry]

The above error messages are thrown when debugging my flex application when the setting is as roomURL="{roomURL}".

I am still confusing whether debugging or building can be done under that setting[roomURL="{roomURL}"], because roomURL var is determined outside the MXML file. Maybe those actions[debugging or building] are not required?

[PHP script outs the correct roomURL and token. For e.g., if I click the 'testcollaboration' room, the url output is "http://cadcam.yonsei.ac.kr/services/cdf_gc/authentication/flashservices/services/Main.html?roomURL=t...".]

Also Double checked whether the room url is correct via SDK's Room Console. PHP website's Creation and Deletion Rooms are working properly.

I just added 3 php codes[$rtc and registerhook stuffs] while finding solutions via websurfing and didn't know their roles exactly. Since my php site only has creating, deleting and entering room features, it is OK to tear out those 3 codes, right?

My flex receives only 2 params : token and roomURL.

I just put the amfphp stuffs that folder without modifying any files' codes. Also didn't changed any codes in RTCHOOKS.php.

I really want to know what things need I got to do with amfphp and RTCHOOKS for the proper working.

Also, are their more codes required for me to add to my php or flex file?

Many Thanks.