Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Allow a user to select the authentication type at runtime

$
0
0

To accomplish this task, you should create a new authentication type, inherited from the AuthenticationBase, and combine the code of the AuthenticationStandard and AuthenticationActiveDirectory classes in it. Additionally, you should create a custom logon parameters class with a property, allowing users to select the authentication type.

Question Comments

Added By: Raoulw at: 5/28/2012 11:14:21 AM    

Sample broken.

                            System.Reflection.MethodInfo mi = typeof(SecurityStrategyBase).GetMethod("InitializeNewUser", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

Should be:

                            System.Reflection.MethodInfo mi = typeof(SecurityStrategyBase).GetMethod("InitializeNewUserCore", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

In 11.2.11

Raoul.

Added By: Apostolis Bekiaris (DevExpress) at: 7/8/2013 10:02:55 PM    

Added to www.eXpandFramework.com 13.1.5.1 enjoy!

Added By: Yahya Mum at: 4/1/2014 11:38:19 PM    

Hello,
Thank you very much for this great functionality.
However I want the "UserName" and "Password" fields to be DISABLED , when the "ActiveDirectory" checkbox is checked. If it is unchecked then these values should be enabled again. It will be a better approach for the end users. How can I accomplish this. I tried using the "Appearance" module. But it didn't work.
For Example:
I put below Attribute above the UserName property
[Appearance("DisablePassword", Enabled = false, Criteria = "UseActiveDirectory",Context="DetailView")]
But didn't work.

Thanks.

Added By: Martin Krcmarik at: 4/9/2014 3:01:49 AM    

Hi, I has same question as Yahya Mum, is it possible?
Thanks

Added By: Carlitos at: 9/12/2014 7:17:36 AM    

I was having the same issue as Yahya and Martin. I solved it by merging codes from E2371, E3931 and https://documentation.devexpress.com/#Xaf/CustomDocument3475

Works like a charm now.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>