Hi,

First of all ... this is probably more an AIR question as it is a Flex 
question, but I am thinking that here eventually someone knows the answer to 
this question.


I'm struggling to make my Flex-based mobile application use Keycloak as OAuth2 
server. So far I got most of it working.


For anyone not familiar with Keycloak. It allows me to: Create a login on 
Keycloak itself or use an OAuth service such as Github, Google+, Twitter, ...

Whenever a user wants to login, keycloak shows a login screen (HTML Page) with 
username+password fields as well as buttons for each of the services that are 
configured. When clicking on "Github" for example, I am redirected to a Github 
page asking me if I want to grant access to that application. As soon ay I 
confirm this, I can simply login by clicking on the "Github" button.


I am using a StageWebView for displaying the login screen and am using the 
Adobe OAuth2 lib described here: 
http://blogs.adobe.com/charles/2012/05/oauth-2-0-library-for-actionscript.html

OAuth 2.0 Library for ActionScript
Tweet
Weitere 
Informationen...<http://blogs.adobe.com/charles/2012/05/oauth-2-0-library-for-actionscript.html>



Logging in with username+password works. Klicking on "github" however doesn't. 
Investigating the communication with Wireshark now revealed that when logging 
in with username+password a "http 302" response is returned and that works 
fine. However if clicking on "github" keacloak returns a "http 307" which 
should be handled slightly different. Unfortunately the StageWebView doesn't 
react at all on this response.


Is this eventually not implemented? If yes ... is there a workaround or an 
alternative to the StageWebView?


Chris

Reply via email to