This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes SSO in Swings application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SSO in Swings application." Watch "SSO in Swings application." New topic

SSO in Swings application.

Rakesh Jhamb
Ranch Hand

Joined: Jun 18, 2003
Posts: 154

There is a Swings application that currently requires the user to logon using Windows Credentials. Since the user is already logged on the windows machine, I would like to implement SSO functionality in this application so that the user does not have log on again.

Please suggest some free open source framework that will help in achieving this in a swing application running on windows.


Jelle Klap

Joined: Mar 10, 2008
Posts: 1869

I'm not sure that's possible for client applications on Windows.
This article mentions support for accessing the native GSS-API of the operation system:

To make Java GSS-API use native GSS-API, Java platform applications must explicitly enable this behavior by setting one or more of the following system properties.

Unfortunately, in case of Windows operating systems:
Note: These two system properties are ignored when applications run on operating systems that do not yet support this feature, for example, MS Windows.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14599

The Java GUI toolkit is called Swing, not Swings with an s at the end.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Rob Spoor

Joined: Oct 27, 2005
Posts: 19908

It's Swing, not Swings. What Jesper said just before me...

How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14599

Beat you by a few seconds, Rob
subject: SSO in Swings application.