Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » equinox.security question: Splash as callbackhandler
equinox.security question: Splash as callbackhandler [message #101940] Mon, 26 November 2007 20:25 Go to next message
Mark Hoffmann is currently offline Mark HoffmannFriend
Messages: 113
Registered: July 2009
Location: Jena
Senior Member
Hello,

I've checked out the equinox-incubator/security code, because I'm trying
to implement my LoginModule. I've seen the sample-project, but was I
wnat is to use the splash-screen as login-dialog / callback handler.

I've already successfully implemented my own version without
equinox-security, but now I will try it with equinox-security.

I have registered my login-module-class via extension-point
org.eclipse.equinox.security.auth.loginModule

I have registered the splashscreenhandler-class via extension-point
org.eclipse.equinox.security.auth.callbackHandler

<extension
id="TestLoginModule"
point="org.eclipse.equinox.security.auth.loginModule">
<loginModule
class="testjaasrcp.TestLoginModule">
</loginModule>
</extension>
<extension
id="id3"
point="org.eclipse.equinox.security.auth.callbackHandler">
<callbackHandler
class="testjaasrcp.splashHandlers.InteractiveSplashHandler" >
</callbackHandler>
</extension>

for the splashscreen I use the extension from the
InteractiveSplashScreen extension point:

extension
point="org.eclipse.ui.splashHandlers">
<splashHandler
class="testjaasrcp.splashHandlers.InteractiveSplashHandler"
id="testjaasrcp.splashHandlers.interactive">
</splashHandler>
<splashHandlerProductBinding
productId="TestJAASRCP.product"
splashId="testjaasrcp.splashHandlers.interactive">
</splashHandlerProductBinding>
</extension>

I think it cannot and does not work with this configuration because the
InteractiveSplashHandler is doing a loop until fAuthenticated is set to
true:

private void doEventLoop() {
Shell splash = getSplash();
while (fAuthenticated == false) {
if (splash.getDisplay().readAndDispatch() == false) {
splash.getDisplay().sleep();
}
}
}

Is it currently possible to use the splash as callback handler? I've
seen your implementation the SecuritySplashHandler but it seems only to
work with certificates. Is it better to use a login-dialog instead?

What do you recommend?

Thanks,
Mark
Re: equinox.security question: Splash as callbackhandler [message #102003 is a reply to message #101940] Wed, 28 November 2007 13:01 Go to previous messageGo to next message
Mark Hoffmann is currently offline Mark HoffmannFriend
Messages: 113
Registered: July 2009
Location: Jena
Senior Member
Mark Hoffmann schrieb:
> Hello,
>
> I've checked out the equinox-incubator/security code, because I'm trying
> to implement my LoginModule. I've seen the sample-project, but was I
> wnat is to use the splash-screen as login-dialog / callback handler.
>
> I've already successfully implemented my own version without
> equinox-security, but now I will try it with equinox-security.
>
> I have registered my login-module-class via extension-point
> org.eclipse.equinox.security.auth.loginModule
>
> I have registered the splashscreenhandler-class via extension-point
> org.eclipse.equinox.security.auth.callbackHandler
>
> <extension
> id="TestLoginModule"
> point="org.eclipse.equinox.security.auth.loginModule">
> <loginModule
> class="testjaasrcp.TestLoginModule">
> </loginModule>
> </extension>
> <extension
> id="id3"
> point="org.eclipse.equinox.security.auth.callbackHandler">
> <callbackHandler
> class="testjaasrcp.splashHandlers.InteractiveSplashHandler" >
> </callbackHandler>
> </extension>
>
> for the splashscreen I use the extension from the
> InteractiveSplashScreen extension point:
>
> extension
> point="org.eclipse.ui.splashHandlers">
> <splashHandler
> class="testjaasrcp.splashHandlers.InteractiveSplashHandler"
> id="testjaasrcp.splashHandlers.interactive">
> </splashHandler>
> <splashHandlerProductBinding
> productId="TestJAASRCP.product"
> splashId="testjaasrcp.splashHandlers.interactive">
> </splashHandlerProductBinding>
> </extension>
>
> I think it cannot and does not work with this configuration because the
> InteractiveSplashHandler is doing a loop until fAuthenticated is set to
> true:
>
> private void doEventLoop() {
> Shell splash = getSplash();
> while (fAuthenticated == false) {
> if (splash.getDisplay().readAndDispatch() == false) {
> splash.getDisplay().sleep();
> }
> }
> }
>
> Is it currently possible to use the splash as callback handler? I've
> seen your implementation the SecuritySplashHandler but it seems only to
> work with certificates. Is it better to use a login-dialog instead?
>
> What do you recommend?
>
> Thanks,
> Mark

Forget about it. I realized it with a LoginDialog
Re: equinox.security question: Splash as callbackhandler [message #103945 is a reply to message #102003] Wed, 16 January 2008 15:27 Go to previous messageGo to next message
Jay Rosenthal is currently offline Jay RosenthalFriend
Messages: 2
Registered: July 2009
Junior Member
Hi Mark,

For security questions, you might get better response posting to the
equinox-dev mailing list.

I think the developers pay more attention to that list than this newsgroup.

I would think you could combine the splash and login screens, however I
don't think its ever been tried.

Jay R.


Mark Hoffmann wrote:
> Mark Hoffmann schrieb:
>> Hello,
>>
>> I've checked out the equinox-incubator/security code, because I'm trying
>> to implement my LoginModule. I've seen the sample-project, but was I
>> wnat is to use the splash-screen as login-dialog / callback handler.
>>
>> I've already successfully implemented my own version without
>> equinox-security, but now I will try it with equinox-security.
>>
>> I have registered my login-module-class via extension-point
>> org.eclipse.equinox.security.auth.loginModule
>>
>> I have registered the splashscreenhandler-class via extension-point
>> org.eclipse.equinox.security.auth.callbackHandler
>>
>> <extension
>> id="TestLoginModule"
>> point="org.eclipse.equinox.security.auth.loginModule">
>> <loginModule
>> class="testjaasrcp.TestLoginModule">
>> </loginModule>
>> </extension>
>> <extension
>> id="id3"
>> point="org.eclipse.equinox.security.auth.callbackHandler">
>> <callbackHandler
>> class="testjaasrcp.splashHandlers.InteractiveSplashHandler" >
>> </callbackHandler>
>> </extension>
>>
>> for the splashscreen I use the extension from the
>> InteractiveSplashScreen extension point:
>>
>> extension
>> point="org.eclipse.ui.splashHandlers">
>> <splashHandler
>> class="testjaasrcp.splashHandlers.InteractiveSplashHandler"
>> id="testjaasrcp.splashHandlers.interactive">
>> </splashHandler>
>> <splashHandlerProductBinding
>> productId="TestJAASRCP.product"
>> splashId="testjaasrcp.splashHandlers.interactive">
>> </splashHandlerProductBinding>
>> </extension>
>>
>> I think it cannot and does not work with this configuration because the
>> InteractiveSplashHandler is doing a loop until fAuthenticated is set to
>> true:
>>
>> private void doEventLoop() {
>> Shell splash = getSplash();
>> while (fAuthenticated == false) {
>> if (splash.getDisplay().readAndDispatch() == false) {
>> splash.getDisplay().sleep();
>> }
>> }
>> }
>>
>> Is it currently possible to use the splash as callback handler? I've
>> seen your implementation the SecuritySplashHandler but it seems only to
>> work with certificates. Is it better to use a login-dialog instead?
>>
>> What do you recommend?
>>
>> Thanks,
>> Mark
>
> Forget about it. I realized it with a LoginDialog
Re: equinox.security question: Splash as callbackhandler [message #113382 is a reply to message #102003] Mon, 07 July 2008 13:23 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hello Mark.

How did you solve it with a login dialog? Would it be possible to post
the code? Because i'm struggeling with the same problem....

Thank you very much...

Peter

Mark Hoffmann schrieb:
> Mark Hoffmann schrieb:
>> Hello,
>>
>> I've checked out the equinox-incubator/security code, because I'm trying
>> to implement my LoginModule. I've seen the sample-project, but was I
>> wnat is to use the splash-screen as login-dialog / callback handler.
>>
>> I've already successfully implemented my own version without
>> equinox-security, but now I will try it with equinox-security.
>>
>> I have registered my login-module-class via extension-point
>> org.eclipse.equinox.security.auth.loginModule
>>
>> I have registered the splashscreenhandler-class via extension-point
>> org.eclipse.equinox.security.auth.callbackHandler
>>
>> <extension
>> id="TestLoginModule"
>> point="org.eclipse.equinox.security.auth.loginModule">
>> <loginModule
>> class="testjaasrcp.TestLoginModule">
>> </loginModule>
>> </extension>
>> <extension
>> id="id3"
>> point="org.eclipse.equinox.security.auth.callbackHandler">
>> <callbackHandler
>> class="testjaasrcp.splashHandlers.InteractiveSplashHandler" >
>> </callbackHandler>
>> </extension>
>>
>> for the splashscreen I use the extension from the
>> InteractiveSplashScreen extension point:
>>
>> extension
>> point="org.eclipse.ui.splashHandlers">
>> <splashHandler
>> class="testjaasrcp.splashHandlers.InteractiveSplashHandler"
>> id="testjaasrcp.splashHandlers.interactive">
>> </splashHandler>
>> <splashHandlerProductBinding
>> productId="TestJAASRCP.product"
>> splashId="testjaasrcp.splashHandlers.interactive">
>> </splashHandlerProductBinding>
>> </extension>
>>
>> I think it cannot and does not work with this configuration because the
>> InteractiveSplashHandler is doing a loop until fAuthenticated is set to
>> true:
>>
>> private void doEventLoop() {
>> Shell splash = getSplash();
>> while (fAuthenticated == false) {
>> if (splash.getDisplay().readAndDispatch() == false) {
>> splash.getDisplay().sleep();
>> }
>> }
>> }
>>
>> Is it currently possible to use the splash as callback handler? I've
>> seen your implementation the SecuritySplashHandler but it seems only to
>> work with certificates. Is it better to use a login-dialog instead?
>>
>> What do you recommend?
>>
>> Thanks,
>> Mark
>
> Forget about it. I realized it with a LoginDialog
Previous Topic:Redeploying/Starting
Next Topic:Combining Equinox and JBoss Runtimes
Goto Forum:
  


Current Time: Fri Apr 19 01:22:32 GMT 2024

Powered by FUDForum. Page generated in 0.01894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top