Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of...
-
Upload
victor-wilson -
Category
Documents
-
view
216 -
download
0
Transcript of Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of...
![Page 1: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/1.jpg)
Grouper TrainingDevelopers and Architects
Client - Part 2
Chris Hyzer
Internet2
University of Pennsylvania
This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
![Page 2: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/2.jpg)
2
Contents
• Introduction• Configuration (part 1)• Command line (part 1)• Documentation• Debugging• Using from a Java program• Use as a reference implementation• LDAP client (part 3)• XMPP message consumer (part 3)
![Page 3: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/3.jpg)
3
Introduction to Grouper Client
![Page 4: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/4.jpg)
4
Documentation
• Usage: java -jar grouperClient.jar• Grouper client wiki• Grouper WS documentation and training• Shows operations
![Page 5: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/5.jpg)
5
Documentation (continued)
![Page 6: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/6.jpg)
6
Debugging
• --debug=true will• Log more information• Show request/response formatted• Credentials are cleansed• Shows full error code / message / etc
![Page 7: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/7.jpg)
7
Debugging (continued)
![Page 8: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/8.jpg)
8
Debugging (continued)
![Page 9: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/9.jpg)
9
Use from java program
• Add grouperClient.jar to the library path (e.g. WEB-INF/lib for web applications)
• Add grouper.client.properties to the classpath• Package:
edu.internet2.middleware.grouperClient.api• Java classes start Gc• Method chaining• Throws exception on error• Command-line API uses the Java API
![Page 10: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/10.jpg)
10
Use from java program (continued)
• Example add member:
![Page 11: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/11.jpg)
11
Use as a reference implementation
• --debug=true shows XML request/response• The java is open source, could be cloned in
another programming language• This is not a trivial effort• Need to keep it up to date with new releases
• In Grouper WS the class GrouperClientWsTest has 34k+ lines of tests of the Grouper Client
![Page 12: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/12.jpg)
12
Quiz
• Click on the quiz link in the video description to reinforce your knowledge of this topic
![Page 13: Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.](https://reader035.fdocuments.us/reader035/viewer/2022062517/56649f045503460f94c18a69/html5/thumbnails/13.jpg)
Thanks!
Further information:
•Infosheets, mailing lists, wiki, downloads, etc.:www.internet2.edu/grouper
•Grouper demo server:grouperdemo.internet2.edu/
•Grouper Online Training Home:spaces.internet2.edu/x/IIGfAQ
This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. 13