Custom logon

StatusIDPriorityType
Closed38560MajorQuestion
ProfileReply
UKClient

What are necessary steps to implement solution described at https://docs.devexpress.com/eXpressAppFramework/112982/task-based-help/security/how-to-use-custom-logon-parameters-and-authentication with Xafari security concept, which modifications are needed?

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello UK!

How to connect Xafari Security you can read in the articles Xafari Security.XPO and Xafari Security. Domain Component.
To implement Custom Logon Parameters and Authentication for Xafari, you need to implement all the steps that are described for Security DevExpress.

Feel free to contact us if you need further assistance or have additional questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Dear Mariya,

Objective is to have authentication type selection between standard and windows an also possibility for selection of company.

I followed 2 tutorials:

- https://documentation.galaktika-soft.com/xafari/doc_security_xpo
- https://docs.devexpress.com/eXpressAppFramework/112982/task-based-help/security/how-to-use-custom-logon-parameters-and-authentication

In Devexpress part I changed user (Employee) to SecuritySystemUser instead PerimissionPolicyUser.

Q1, UserType for "Security Strategy Complex" is set to DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser. Is that corect?

Q2, Both authentication types, Windows and Standard are working, but what additional modifications are needed that also Company selection dropdown apears on login screen?

MariyaVoytovichAgent

Hello UK!

I apologize for the delayed response.

We are dealing with this issue.

Unfortunately I will need some more time.

Regards,
Mariya
On behalf of Xafari Client Services Team

MariyaVoytovichAgent

Hello UK!

Thanks for your patience.

We have prepared an example for you with Custom Logon. See attached file.

Feel free to contact us if you need further assistance or have additional questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Dear Mariya,

Thank you for sample. Standard authentication is working.

About windows authentication it is not clear to me why current windows user does not appear in username textbox within login window, should I create it first so it exists in database?

How can i make company text box value read only or hide it and preset value to e.g. company1?

MariyaVoytovichAgent

Hello!

1. yes, this application assumes that the user must be created. Then, during the windows authentication, the Employee field will be filled. But you can implement different logic in your application.

2. You can hide the field or make it read-only in the model editor. To do this, you need to open the model editor, go to the CustomLogonParameters_DetailView. So that the field is read only, you need to select the Company Item in Items node of CustomLogonParameters_DetailView. Set property AllowEdit to False.
To hide fild, go to Layout node and remove Company from layout.

You can make a preset company1, for example, in the controller CustomAuthenticationViewController.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US