I'll handle the PHP part !
DJP
Regards,... Fred
Jeremy, I've got a question for you. I've made PHP Scripts, but I ran
into a security issue using the AJAX call. (This is the same with any
other dev language we will create in future)
I tested my PHP demo API file on a different domain like "xxx.com",
while BBB runs on a VM "192.168.x.x" and when I call isMeetingRunning
using AJAX, I've cross domain security issues.
We have different solutions to fix this:
- NGINX throught fastCGI to process thoses PHP files => Not good to
me.Many users would like to have their API controller on another
domain/server.
- Handling OPTIONS request + Access-Control-Request header => Seems
good to me, but only recent browser like Firefox 3.x and IE8 can do
that. (OPTIONS request with headers => Access-Control-Request-Method:
GET / Access-Control-Request-Headers: x-requested-with. But I don't
know how to make the groovy apps API to handle OPTIONS request so it
can send back the "Access-Control-Allow-Origin: *" header. Any idea ?
- Create an internal "gateway" using a PHP Proxy Script which request
to tomcat server internally, and the ajax request this PHP proxy
script located on the same domain => Crossbrowser and fully working
but lame ^^
For the others, any other idea ? What do you think is best ?
Thanks,
DJP
On 15 fév, 15:04, Fred Dixon <ffdi...@gmail.com> wrote:
> Thanks!!
>
> Regards,... Fred
>
> On Feb 15, 3:36 am, DJP <D...@architectes.org> wrote:
>
>
>
> > Hi Fred,
>
> > I'll handle thePHPpart !
> > > If anyone out there is aPHPwiz, we're looking for a volunteer to convert
> > > the JSP API demo pages into theirPHPequivalents for release in 0.64.
>
> > > Regards,.. Fred
Is it an option to have the PHP code running on the server call
isMeetingRunning() directly?
The browser can, in turn, call the PHP code to get the return result
from isMeetingRunning() from the BigBlueButton server.
Regards,... Fred
Yep, that was my third solution : a PHP proxy script. I think that's
the best we can do to be fully cross browser compliant and working.
Even if it consume more ressources and create more possible point of
failure since it's not direct.
A while after writing my previous post, i thought too this was the
best solution. This means, each new API languages will have to create
this proxy script compared to the jsp examples.
I'll finish the PHP API Example with that PHP proxy script, commit,
and I'll do the Python API script. (Django, Plone, ...)
Oh, and where can I commit thoses PHP files on the SVN ? Any prefered
destination folder ?
Thanks for your thought,
DJP
On 17 fév, 13:37, Fred Dixon <ffdi...@gmail.com> wrote:
> Hi DJP,
>
> Is it an option to have thePHPcode running on the server call
> isMeetingRunning() directly?
>
> The browser can, in turn, call thePHPcode to get the return result
> from isMeetingRunning() from the BigBlueButton server.
>
> Regards,... Fred
>
> On Feb 17, 7:22 am, DJP <D...@architectes.org> wrote:
>
>
>
> > Hi there,
>
> > Jeremy, I've got a question for you. I've madePHPScripts, but I ran
> > into a security issue using the AJAX call. (This is the same with any
> > other dev language we will create in future)
>
> > I tested myPHPdemo API file on a different domain like "xxx.com",
> > while BBB runs on a VM "192.168.x.x" and when I call isMeetingRunning
> > using AJAX, I've cross domain security issues.
>
> > We have different solutions to fix this:
> > - NGINX throught fastCGI to process thosesPHPfiles => Not good to
> > me.Many users would like to have their API controller on another
> > domain/server.
> > - Handling OPTIONS request + Access-Control-Request header => Seems
> > good to me, but only recent browser like Firefox 3.x and IE8 can do
> > that. (OPTIONS request with headers => Access-Control-Request-Method:
> > GET / Access-Control-Request-Headers: x-requested-with. But I don't
> > know how to make the groovy apps API to handle OPTIONS request so it
> > can send back the "Access-Control-Allow-Origin: *" header. Any idea ?
> > - Create an internal "gateway" using aPHPProxy Script which request
That's great! You can check them at
/trunk/bbb-api-examples/php
At some point we'll move of the jsp examples into
/trunk/bbb-api-examples/jsp
And follow the same format for others.
Regards,... Fred
>
> > > Regards,.. Fred
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To post to this group, send email to bigblueb...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-dev?hl=en.
Jeremy, I agree with you but I just commit a first example using PHP
Proxy. No problem to me to change JS location so we can reach directly
BBB server.
I have 2 lines to comment and 2 to modify to acheive what you said ;-)
Any idea where are/will be stored those 2 files so I modify my
scripts ?
You can check out http://code.google.com/p/bigbluebutton/source/browse/trunk/bbb-api-examples/
for the PHP Api example. I'll do the Python one later.
DJP
On 18 fév, 04:00, Jeremy Thomerson <jeremythomer...@gmail.com> wrote:
> Please see my responses on this thread:http://groups.google.com/group/bigbluebutton-dev/browse_thread/thread...
> > bigbluebutton-...@googlegroups.com<bigbluebutton-dev%2Bunsubscr i...@googlegroups.com>
To unsubscribe from this group, send email to bigbluebutton-...@googlegroups.com.