ADFS/SAML authentication for Java desktop app -


i have java desktop app. found lot of online resources talk sso authentication web apps. need same thing old school desktop app. basically, need app open browser window, have user authenticate against adfs , token back.

how can add sso authentication adfs/saml?

i found answer.

  1. first, desktop app needs show browser window. can achieved using javafx webview. have tested google , adfs login using javafx webview. nb: if use adfs must set adfs use form-based auth.
  2. a helper webservice needs built. webservice provide method secured federated authentication mechanism (saml2, oauth, etc). haven't been able in java. there solutions josso they're ridiculously cumbersome or severely lacking. however, c# has outstanding support federated auth makes excellent choice task.
  3. when user needs authenticate, desktop app shows browser window automatically calls method above. after federated auth handshake, browser able access method. method tells desktop app whether calling user allowed access.
  4. the final step close browser window , log in user.

nb: not easy task. takes week's worth of work put together.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -