Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] RESTful WS call -- authN failing

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] RESTful WS call -- authN failing


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Keith Hazelton <>, "" <>
  • Cc: PB IAM <>
  • Subject: RE: [grouper-users] RESTful WS call -- authN failing
  • Date: Thu, 12 Jul 2012 03:30:51 +0000
  • Accept-language: en-US

Worked for me on the demo server, though it is apache user/pass which should
be similar:


[mchyzer@i2midev1
tmp]$ cd /tmp
[mchyzer@i2midev1
tmp]$ wget --http-user=GrouperSystem --http-password=xxxxxxxxxx
https://grouperdemo.internet2.edu/grouper-ws_v2_0_0/servicesRest/json/v2_0_000/subjects/elbl/groups
--2012-07-11 23:27:47--
https://grouperdemo.internet2.edu/grouper-ws_v2_0_0/servicesRest/json/v2_0_000/subjects/elbl/groups
Resolving grouperdemo.internet2.edu... 207.75.164.158, 2001:48a8:68fe::158
Connecting to grouperdemo.internet2.edu|207.75.164.158|:443... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Connecting to grouperdemo.internet2.edu|207.75.164.158|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1284 (1.3K) [text/x-json]
Saving to: `groups.2'

100%[=====================================================================================>]
1,284 --.-K/s in 0s

2012-07-11 23:27:48 (40.8 MB/s) - `groups.2' saved [1284/1284]

[mchyzer@i2midev1
tmp]$ more groups.2
{"WsGetGroupsLiteResult":{"responseMetadata":{"millis":"38","serverVersion":"2.0.1"},"resultMetadata":{"resultCode":"SUCCESS","
resultMessage":"Success for: clientVersion: 2.0.0, subjectLookups: Array
size: 1: [0]: WsSubjectLookup[subjectId=elbl]\n\nmembe
rFilter: All, includeGroupDetail: false, actAsSubject: null\n, params: null\n
fieldName1: null\n, scope: null, wsStemLookup: Ws
StemLookup[]\n, stemScope: null, enabled: null, pageSize: null, pageNumber:
null, sortString: null, ascending: null\n, pointInT
imeFrom: null, pointInTimeTo:
null","success":"T"},"wsGroups":[{"displayExtension":"Students","displayName":"QS
University of B
ristol:Academic
faculties:Engineering:Students","extension":"students","name":"qsuob:faculties:engf:students","uuid":"d0e456b7-
b11b-46b5-8103-30ea520675de"},{"displayExtension":"All
students","displayName":"QS University of Bristol:All students","extensi
on":"all_students","name":"qsuob:all_students","uuid":"7959b1fe-c63b-45de-a603-9dc0fdda8206"},{"displayExtension":"All
Students
and Staff","displayName":"QS University of Bristol:All Students and
Staff","extension":"all","name":"qsuob:all","uuid":"30c2a9
3f-3494-4022-a2f5-b92682586482"}],"wsSubject":{"id":"elbl","name":"Elizabeth
Blair","resultCode":"SUCCESS","sourceId":"jdbc","s
uccess":"T"}}}
[mchyzer@i2midev1
tmp]$




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


[mailto:]
On Behalf Of Keith Hazelton
Sent: Wednesday, July 11, 2012 10:56 PM
To:

Cc: PB IAM
Subject: [grouper-users] RESTful WS call -- authN failing

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm sure I'm making a newbie error with RESTful Grouper WS calls. Tried to
follow directions from the wiki. Relying on users defined as result of
running Grouper installer and groups defined with the delivered UI.

Advice appreciated. --Keith

* Set up a user with the grouper_user role for use when invoking Grouper
RESTful web services:
- -----
<tomcat-users>
...
<role rolename="grouper_user"/>
<user username="GrouperSystem" password="...XXXX" roles="grouper_user"/>
<user username="fido" password="...ZZZZ" roles="grouper_user"/>
...
</tomcat-users>
- -----

* Invoke the Grouper web service to retrieve groups for the person with
subject id 'elbl'
- ----------
wget --http-user=fido --http-password=...ZZZZ
http://localhost:8080/grouper-ws/servicesRest/json/v2_1_000/subjects/elbl/groups

- --2012-07-11 21:41:39--
http://arche.metazome.info:8080/grouper-ws/servicesRest/json/v2_1_000/subjects/elbl/groups
Resolving arche.metazome.info (arche.metazome.info)... 50.116.58.238
Connecting to arche.metazome.info
(arche.metazome.info)|50.116.58.238|:8080... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Reusing existing connection to arche.metazome.info:8080.
HTTP request sent, awaiting response... 401 Unauthorized

Authorization failed.
- ----------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJP/jywAAoJEPXbVHOlscTvdo8H/3/DZY5pI0GyNcofYTPCxYv4
WiJi18uzwAM7OAnj7B4134giCfIxunaIfdvAdoruntMB3UvI4vRSGoZLAsizIKIz
1tROzdTbmLtmW8w67B6jnrkQpP1MgfX3b/LMZwNCPK7dtY/y4dVZn54toYQ8j0S+
c2mf3Ycdi6gypBOF2s+xsQH5LG9pZa4eG9cHI1rsdwKYMQQeXrCR08JtNo1P9v+e
1KCzl4xlqYIZPDBuj08Q6ZlEfpHkwMsiixmWfbpGRhuGGAgl0UEiRF3ZVZIkQpe9
2oHJYTh5EV7VZr7poxD4kUX4xCyxzGDws0KW8EMV1kNLXIsCmDE/SI7Qb4fN44Y=
=z6ye
-----END PGP SIGNATURE-----



Archive powered by MHonArc 2.6.16.

Top of Page