Print Page | Close Window

Implicit Login

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3527
Printed Date: 13-May-2026 at 5:21am


Topic: Implicit Login
Posted By: Vonzkie
Subject: Implicit Login
Date Posted: 09-Jul-2012 at 5:16am
Hi,

The devforce version that we're using before is 6.1.4.0 and after we migrated to 6.1.7.1 we experience problems or should I say affected by some breaking changes like the new login.

My question would be is that, what is the new concept behind the new login mechanism because I'm having hard time understanding the release notes on 6.1.6.0 regarding that. What is the purpose of doing that? How do we do  the DefaultAuthenticationContext = null in codes? and how do we fix issue such as "Implicit login is not allowed when AuthenticationContext is logged out."

Thanks,
Von



Replies:
Posted By: sbelini
Date Posted: 09-Jul-2012 at 11:00am
Von,
The new authentication implementation is to provide a single authentication process.
i.e. once the user logs in via Authenticator.Instance.Login/LoginAsync(cred) and its result is asigned to the DefaultAuthenticationContext, all EM instances will be authomatically logged in (unles you explicitly set an EM to not use the DefaultAuthenticationContext).
You can also find this information at http://drc.ideablade.com/xwiki/bin/view/Documentation/authentication-details-client#HSinglesign-on2Fsign-off - http://drc.ideablade.com/xwiki/bin/view/Documentation/authentication-details-client#HSinglesign-on2Fsign-off .
 
You asked "How do we do  the DefaultAuthenticationContext = null in codes?"...
I'm not sure what you mean. If you want to set DefaultAuthenticationContext = null, you can simply:
 
Authenticator.Instance.DefaultAuthenticationContext = null;
 
You will also find this information in the link above.
 
You also asked "how do we fix issue such as "Implicit login is not allowed when AuthenticationContext is logged out?"
If you call logout, you must explicitly log back in in order to perform any operation.
 
Regards,
   Silvio.
 



Print Page | Close Window