Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub tag (latest SemVer)Build StatusProject Status: Active – The project has reached a stable, usable state and is being actively developed.CodeQLKnown Vulnerabilities

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

Example code

// 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);

Example code, with automatic user and application session renewwal

WhydahApplicationSessionwasSession =newWhydahApplicationSession(uTokenSUri, \\newApplicationCredential(appId,appName,appSecret));WhydahUserSessionwusSession =newWhydahUserSession(wasSession,userCredential);if (wusSession.hasRole("WhydahAdmin"){// do admin privilege operation        }

Binaries

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

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp