Skip to main content
August 7, 2012
Question

StageWebView basic authentication

  • August 7, 2012
  • 3 replies
  • 1288 views

Hello,

I am using a StageWebView to request a page which requires basic authentication. The documentation on this page: http://helpx.adobe.com/air/kb/stagewebview-differences-platforms-air-sdk.html

states that no authentication dialog is implemented for iOS and Android.

Currently no default UI is implemented on mobile for HTTP authentication. On desktop HTTP authentication uses the default OS dialog for authentication.

Then the docs say it is possible to create your own dialog.

Event though the authentication dialog is disabled, the developer can create their own UI and use the URLRequest API to do basic or digest authentication.

I tried to find a way to implement this but I can't come up with a good solution. What I tried:

1. Try to add headers to the StageWebView requests, not possible, no way to inject.

2. Try to request the url with a URLLoader but no session information is shared between the URLLoader and the StageWebView.

Does anybody have any ideas how to handle the authentication ?

This topic has been closed for replies.

3 replies

Participant
November 12, 2012

Hi,

I'm just struggling with the same problem. Spent an hour on search looking for a tip but couldn't find anything.

Have you found a way to authenticate in the meantime?

Regards,

Tomislav

November 15, 2012

Hi Tomislav,

I did not find a way to authenticate. What I did in the end is use a

proxy who authenticates for me. A lot of hassle for something simple

like http authentication but Adobe is not very helpful in resolving this

issue.

Hope a proxy also works for you.

Cheers,

Ron

Participant
November 18, 2012

Hi Ron,

thanks for the reply.

Our workaround was using a fast expiring token acquired over authenticated channel and providing it to StageWebView to load the document over non-authenticated channel.

Cheers,

Tomislav