Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

problems with rooms and authentication

Avatar

Level 1
Hi there! Currently i am working on a collaborative
brainstorming app. I came across cocomo (now afcs) and it worked
like a charm out of the box. Now i am trying to give the user the
possibility to add new rooms. I do this with php. When i try to add
a room, the return-value is empty, the room is not created. When i
try to list the rooms i get a HTTP 403 - forbidden error. Opening
the afcs dev console lists one room: mymeeting. I cannot add or
delete rooms. Accessing via the developer portal i see my old
rooms, i can add and delete rooms.

A few hours ago, the situation was the following: the
afcs-script throwed an expection when trying to add a room. I had
to "create" or fill in the acrobat.com-account, accessible via "My
Account" in the developer portal before the error message
disappeared.



However, somehow i cannot add rooms nor list them via script
and the dev console gives me some strange information.

Anyone with the same issues? Could it be some
language/country-problem? Is it account-related? I am from germany.
Thank you in advance!



Here is the php code i used:
9 Replies

Avatar

Employee
did you create the 'mymeeting' room ?



if not, you are using a 'standard' ConnectNow meeting account
that only allows one room ('mymeeting') and will not let you create
new ones.



in order to create an sdk account please go to:




http://afcs.acrobat.com/



It will ask you for your credentials and it will let you
create an account that you can use to build collaborative
applications.





Avatar

Level 1
thank you for the answer.



i have a sdk-account. on the developer portal
(afcs.acrobat.com) i can add and delete rooms. i can access the
rooms with flex, i simply cannot add any rooms with php nor
retrieve a list of rooms. maybe the developer account collides with
the "normal" account?



very interesting: currently both of the developer
console-apps (0.9 and 0.91) show the mymeeting-room whereas the
developer portal shows the room i created there.

Avatar

Employee
I still think you are using a ConnectNow account in your flex
app and devconsole (where you have to specify the room URL).



The DevPortal is able to select the SDK account associated to
your AdobeID, even if you have multiple accounts (i.e. a regular
meeting account and an sdk account).



Are you sure the URL that shows up in the DevPortal is the
same you use in your flex app ?



It would be helpful if you run your app in the debugger and
send us the traces you get in the Flex console.



Avatar

Level 1
like i said, the flex apps work all fine. it's the php-script
which cannot add, list or delete rooms. i have attached the flex
console traces to this post.

thanks a lot for your help!

Avatar

Employee
ok, sorry. I am getting confused with all the pieces involved
:)



your 'pofessore' account only has the room called 'testroom',
so everything seems to be fine.



if you try to create the same room again you would get a 403
error.



please try the php script from the command line like this:



php afcs.php --debug pofessore 'your-dev-user-id'
'your-dev-user-password' --create 'theroomtocreate'



please send the output and we can look into it (it may show
your password, so make sure you remove it :)



you can also add AFCS::$DEBUG=true in your server-side code
and collect that output instead.



Avatar

Level 1
attached is the php-output. this is what i get on the server
when running in debug mode and on the command line. the
"room-instance" - portion is interesting, it looks like it is
trying to connect to the mymeeting-room.

Avatar

Employee
I told you you were using a meeting account :)



You have TWO different accounts, one called 'professore'
(correct italian spelling for 'professor'), that is a ConnectNow
room. The other, is called 'pofessore' (bad spelling :) and it is
the SDK account that you are using in your flex application.



So, fix the spelling and everything will work. Ciao! :)

Avatar

Level 1
i can't believe it. i nearly died banging my head against
various walls for a spelling error.



you are allowed to laugh at me ;-)



sorry for wasting your time with such a silly error. thank
you for pointing it out!

Avatar

Level 1
don't worry profdotti, i did stupid error all the time lol ;D




cheers Raff. , great support!