Select to view content in your preferred language

Using web services to grant access to the Flex Viewer

499
1
06-24-2011 10:45 AM
MarkHuffman
Deactivated User
I will be writing code that calls methods from two web services that will decrypt and validate user-provided values before providing the user with access to the Flex Viewer.

The process is initiated from a .NET application. It will pass two encrypted values that identify the user. Flex will take each value, one at a time, along with a token, and call a method on the first web service. This web service will determine the validity of the passed data, and if valid, decrypt the value that identifies the user.

Once both user values are validated, they are then passed together in a method to a second web service, which evaluates whether both values in tandem are valid for accessing the Flex Viewer.

After both web services are called and grant access, the Flex Viewer will load.

I have imported both web services, which are on a remote server, into my Flex project. Before I write the code to call the methods, I need guidance on where to start. Will this process be initiated in MapManager.mxml, or somewhere else?

Any other information that will help me will be appreciated.
Tags (2)
0 Kudos
1 Reply
RobertRectenwald
Deactivated User
I will be writing code that calls methods from two web services that will decrypt and validate user-provided values before providing the user with access to the Flex Viewer.

The process is initiated from a .NET application. It will pass two encrypted values that identify the user. Flex will take each value, one at a time, along with a token, and call a method on the first web service. This web service will determine the validity of the passed data, and if valid, decrypt the value that identifies the user.

Once both user values are validated, they are then passed together in a method to a second web service, which evaluates whether both values in tandem are valid for accessing the Flex Viewer.

After both web services are called and grant access, the Flex Viewer will load.

I have imported both web services, which are on a remote server, into my Flex project. Before I write the code to call the methods, I need guidance on where to start. Will this process be initiated in MapManager.mxml, or somewhere else?

Any other information that will help me will be appreciated.


Why not put the flex viewer object in an .aspx page and use the built-in .Net membership provider mechanism to enforce your security. That would also fit in nicely if you want to secure your map services so only authenticated user have access
0 Kudos