Grouper Training Developers and Architects Client Part 2

  • Slides: 13
Download presentation
Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet 2 University

Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet 2 University of Pennsylvania This work licensed under a Creative Commons Attribution-Non. Commercial 3. 0 Unported License.

Contents • • • Introduction Configuration (part 1) Command line (part 1) Documentation Debugging

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) 2

Introduction to Grouper Client 3

Introduction to Grouper Client 3

Documentation • Usage: java -jar grouper. Client. jar • Grouper client wiki • Grouper

Documentation • Usage: java -jar grouper. Client. jar • Grouper client wiki • Grouper WS documentation and training • Shows operations 4

Documentation (continued) 5

Documentation (continued) 5

Debugging • --debug=true will • • Log more information Show request/response formatted Credentials are

Debugging • --debug=true will • • Log more information Show request/response formatted Credentials are cleansed Shows full error code / message / etc 6

Debugging (continued) 7

Debugging (continued) 7

Debugging (continued) 8

Debugging (continued) 8

Use from java program • Add grouper. Client. jar to the library path (e.

Use from java program • Add grouper. Client. jar to the library path (e. g. WEB-INF/lib for web applications) • Add grouper. client. properties to the classpath • Package: edu. internet 2. middleware. grouper. Client. api • Java classes start Gc • Method chaining • Throws exception on error • Command-line API uses the Java API 9

Use from java program (continued) • Example add member: 10

Use from java program (continued) • Example add member: 10

Use as a reference implementation • --debug=true shows XML request/response • The java is

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 Grouper. Client. Ws. Test has 34 k+ lines of tests of the Grouper Client 11

Quiz • Click on the quiz link in the video description to reinforce your

Quiz • Click on the quiz link in the video description to reinforce your knowledge of this topic 12

Thanks! Further information: • Infosheets, mailing lists, wiki, downloads, etc. : grouperdemo. internet 2.

Thanks! Further information: • Infosheets, mailing lists, wiki, downloads, etc. : grouperdemo. internet 2. edu • Grouper demo server: grouperdemo. internet 2. edu/ • Grouper Online Training Home: spaces. internet 2. edu/x/IIGf. AQ This work licensed under a Creative Commons Attribution-Non. Commercial 3. 0 Unported License. 13