Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] HTML/AJAX/JS Grouper Client

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] HTML/AJAX/JS Grouper Client


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Matthew Buckett <>, "" <>
  • Subject: RE: [grouper-users] HTML/AJAX/JS Grouper Client
  • Date: Thu, 31 Mar 2011 13:27:05 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

So you are saying that the requests go from the user's browser, to sakai,
then proxy to grouperWs?

You wouldn't want anything about the actAs from the browser since they could
just write someone else's ID right? So I think the proxy will have to do a
little bit of work, but will be more complicated than just a web proxy.

If you are on a web services doc page, e.g.:

https://spaces.internet2.edu/display/Grouper/Get+Groups

And click on samples:

http://anonsvn.internet2.edu/cgi-bin/viewvc.cgi/i2mi/trunk/grouper-ws/grouper-ws/doc/samples/getGroups/

Then you should click on http_xhtml... if you want json back, then put json
in the URL instead of xhtml, and you can put the post body into the URL (I
think), instead of post...

https://server.school.edu/grouper-ws/servicesRest/json/v1_6_000/subjects/10021368/groups?wsLiteObjectType=WsRestGetGroupsLiteRequest&actAsSubjectId=GrouperSystem


Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Matthew Buckett
Sent: Thursday, March 31, 2011 12:51 PM
To:

Subject: [grouper-users] HTML/AJAX/JS Grouper Client

Hiya,

We're looking at using Grouper for some group data for our Sakai
installation and as part of this we're wanting a native interface to
Grouper in Sakai, so that users can find existing groups or have basic
functionality to create a new ones. This is so that the UI works well
with Sakai and feels part of the standard interface. Also so that the
groups are created in a way that works with Sakai (permissions).

Todo this I was thinking about writing the Grouper as a HTML
application which makes XmlHttpRequests to Sakai which get
authenticated and then passed along (proxied) to Grouper (using act
as). I was hoping to use the JSON URLs so they are quick and easy by
the browser.

I have a few questions:

- Has anyone done this before?
- I was hoping I could set the act as subject as a HTTP header so that
when Sakai proxies the request to could be sure which user it was
acting on behalf of without having to parse the contents of the
request (eg the JSON). Is this possible?
- The documentation mentions that the light methods of the REST WS
should be callable as a GET with query parameters, but I can't see an
example of this. Something along the lines of:

https://grouper/grouper-ws/servicesRest/json/v1_6_000/subjects/{subjectid}/groups?enabled=true

but this doesn't seem to work.

Thanks in advance.

--
  Matthew Buckett
  VLE Developer, LTG, Oxford University Computing Services



Archive powered by MHonArc 2.6.16.

Top of Page