Select to view content in your preferred language

ArcGIS Viewer for Flex under security

1799
3
11-04-2014 07:53 AM
NatashaManzuiga
Occasional Contributor

Hi All, I wish I could test a value in a JSON and if the value correspond to "XXXXX" I want to give access...otherwise the Flex Viewer should show a HTMLpopup and then unload itself....

Is it possible?

Thanks,

Naty

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Naty,

   This is not a simple task but here is a thread that has MANY posts concerning this:

Login Screen for the Flexviewer

0 Kudos
NatashaManzuiga
Occasional Contributor

Robert, I have a httpservice  that read a webservice as result if I'm authorized or not.

-The httpservice is located in ConfigManager.as...and I have a public Boolean variable with the Result..

-I added the eSplashWidget

Now...what I want to do is that I load the eSplash widget(modal view) only if I'm not authorized and when I click the ok button (of the widget) I want to redirect the url to another page...

Is it possible?

Thanks,

Naty

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Naty,

   If you are using the ArcGIS Security/Login stuff from the link in my previous post then your desired workflow is not practical. If a user is not authorized by the webservice than the Viewer and it's widgets will not be displayed (thus you can not use the eSplash widget).Your better course of action would be to redirect the user to a html page that explains why they are not authorized to use the site and on that html page provide a link to the desired end point.

0 Kudos