forked fromaltran/_Whydah-Java-SDK
- Notifications
You must be signed in to change notification settings - Fork0
A client library which might make Whydah integration more easy and more resilient
License
NotificationsYou must be signed in to change notification settings
Cantara/Whydah-Java-SDK
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A client library which aimed to make Whydah integration more easy and more resilient
- XML and JSON parsing of Whydah datastructures sent over the wire. (Whydah Typelib)
- Util library for all the frequent used standard API calls
- SessionHandler for ApplicationSessions and User Sessions
- Client logic for using Whydah Web SSO - SSOLoginWebapp (SSOLWA) and STS (SecurityTokenService).
The 3rd party Admin SDK is found athttps://github.com/Cantara/Whydah-Admin-SDK
For code and examples for other languages, seehttps://github.com/cantara/Whydah-TestWebApp
// Log on application and userStringuserToken =WhydahUtil.logOnApplicationAndUser("https://whydahdev.cantara.no/tokenservice/",\\newApplicationCredential("applicationID","applicationname","applicationSecret"),\\newUserCredential("username","password");// Get the user sessionId (userTokenId)StringuserTokenId =UserXpathHelper.getUserTokenId(userToken);
WhydahApplicationSessionwasSession =newWhydahApplicationSession(uTokenSUri, \\newApplicationCredential(appId,appName,appSecret));WhydahUserSessionwusSession =newWhydahUserSession(wasSession,userCredential);if (wusSession.hasRole("WhydahAdmin"){// do admin privilege operation }
Binaries and dependency information for Maven, Ivy, Gradle and others can be found athttp://mvnrepo.cantara.no.
Example for Maven:
<dependency> <groupId>net.whydah.sso</groupId> <artifactId>Whydah-Java-SDK</artifactId> <version>x.y.z</version> </dependency>
About
A client library which might make Whydah integration more easy and more resilient
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published
Languages
- Java100.0%