The Space For App Developers

Beyond Plain Old HTML Objects

OAuth authorization with Flash and Flex apps

with 11 comments

Below you will find links to my two video tutorials about OAuth authorization with Flash and Flex apps:

1) Introduction to OAuth for secure user and application authorization

2) OAuth in Adobe AIR applications built with Flash or Flex

You can also download example code from here.

Written by Piotr Walczyszyn

May 16th, 2011 at 12:03 pm

Posted in Articles,Examples,Recording

Tagged with , , ,

11 Responses to 'OAuth authorization with Flash and Flex apps'

Subscribe to comments with RSS or TrackBack to 'OAuth authorization with Flash and Flex apps'.

  1. I am trying to run the example code provided here in Flash Builder 4.0.1, but I get the message “Could not resolve to a component implementation. Main.mxml /oauth/src line 7″. Any ideas as to what might be wrong? I do not normally do any AIR development, just Flex; do I need to download some additional packages? Thanks!

    Matthew

    19 May 11 at 6:56 pm

  2. I found the problem; I was trying to build against Flex 3.4. Switching to Flex 4.1 solved the problem.

    Matthew

    19 May 11 at 10:03 pm

  3. Can you provide an example of oAuth for facebook on mobile using stageWebView?

    mark mun

    23 May 11 at 12:33 am

  4. I thought your example was exciting. I have searched all over to determine how you can send parameters using the library. For example, to get the calendar events with out parameters responds well, but if I want to limit my request to start-min and start-max, I get ‘Unknown authorization header’ when passing the arguments into the request parameters portion of the OAuthRequest.

    Have you done something like this in the past? And could you share your experience?

    Rob Herman

    23 Jun 11 at 6:52 pm

  5. Where did you find the oauth-as3 swc file?

    matt

    17 Jul 11 at 11:45 pm

  6. @matt I checked it out from SVN at Google Code and compiled as a Flex Library project.
    p.

    Piotr Walczyszyn

    18 Jul 11 at 10:18 am

  7. for flex mobile ios app, how do i specify the ‘AUTHORIZE_TOKEN_URL’ to callback my native app? is this possible?

    smile

    30 Jul 11 at 3:05 am

  8. @smile you can use StageWebView embedded in your app or you can register custom url scheme that will return back to your app.

    You can register custom url scheme with following xml snippet in iPhone section of your app.xml:

    <key>CFBundleURLTypes</key>
    <array>
    	<dict>
    		<key>CFBundleURLSchemes</key>
    		<array>
    			<string>mycustomurl</string>
    		</array>
    		<key>CFBundleURLName</key>
    		<string>com.myapp</string>
    	</dict>
    </array>

    Piotr Walczyszyn

    1 Aug 11 at 5:09 pm

  9. [...] (Custom URL schemes are especially useful if you are doing OAuth authentication in your app and you want to redirect the user back to your application after the authorization in the browser – you can find out more about OAuth in AS3/Flex applications in my ADC tutorials.) [...]

  10. The google code repository has no download link for oauth-as3, even using SVN fails! What’s happened to that project?

    Mark HH

    21 Sep 11 at 4:04 am

  11. Somebody essentially help to make critically articles I would state. This is the very first time I frequented your website page and up to now? I amazed with the research you made to make this actual put up extraordinary. Great job!

    url shortener

    29 Oct 11 at 5:20 am

Leave a Reply