cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Re-Authenticate a user from Adobe Flex

Former Member
0 Kudos
163

Hi,

I am trying to implement the audit-functionality of the iCommand applet in Adobe Flex.

For this to work I have to re-check the current user's role and password.

I can get the role for any user with this URL:

[http://server:port/XMII/Illuminator?service=admin&Mode=UserAttribList&Content-Type=text/xml&Mask=<user>]

Alternativley, for the current user I could get it from the session:

[http://server:port/XMII/PropertyAccessServlet?mode=List&Content-Type=text/html]

The hard part, however is to re-check this user's password.

I am trying something like the following:

[http://server:port/XMII/CM/Test_DM/Project/Folder/file.xml?IllumLoginName=xxxxx&IllumLoginPassword=abc123&Content-Type=text/xml]

Next I would interpret the returned values: the expected xml-file that would say something simple like:

<Success>1</Success>

or in case of a wrong user/password combo I would get the following from the server:

<FatalError>Authentication Required</FatalError>

Unfortunately this does not seem to work, when the user is already logged in. Then every user/password combo is just accepted and the success-xml is presented. So the whole purpose of re-checking the password does not work with this approach.

Can someone help me with this?

Here are the best existing hits I found in this forum:

[;

[;

Thank you for your help!

Best regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use an http post action inside a BLT to call the Role list URL, passing the user entered credentials.

Former Member
0 Kudos

Thank you! Great answer! It seems successful at my first tries.

I'll fully implement it tomorrow and post the results.

Former Member
0 Kudos

Yes, you solution works just like I need it!

Thanks again!

Answers (0)