Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 801703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:28:59+00:00 2026-05-14T23:28:59+00:00

I’ve just made a little server amf on gae and pyAmf ( now down?).

  • 0

I’ve just made a little server amf on gae and pyAmf ( now down?).
Well I’ve also made a client in flex 4 and all works well.

Now I’d like to add an authentication method, and I know that there a method in flex to authenticate using

RemoteObject.setCredentials(username:String, password:String, charset:String = null):void

Now I don’t understand how use this
in client side and server side, where register user, should I create user tables?

there’s a book what is the way to use AMF with flex?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:28:59+00:00Added an answer on May 14, 2026 at 11:28 pm

    The aim of PyAMF is to provide AMF en/decoding support for Python. In helping to achieve this and actually make the library useful to people we added AMF0/3 remoting support via the *Gateway classes. RemoteObject can use many types of ‘channels’ to accomplish its goals – HTTP, RTMP, etc. of which PyAMF only supports HTTP (and polling at that).

    RemoteObject authentication within an HTTP context is achieved via session cookies. PyAMF supports many popular web frameworks (Twisted, Django, AppEngine, web2py, WSGI) each of these providing different interfaces for using sessions. We decided early on that this would be too much to support and that in any case it really is beyond the scope of what PyAMF is meant to achieve.

    PyAMF is pretty much done now (as much as any software project can be) thanks to its narrow scope. We have a few more milestones to achieve, better performance and py3k support being the main goals.

    Now for some good news. AmFast already supports Flex Messaging (including RemoteObject) in pretty much whatever flavour you want, including (as I understand it) authentication out of the box. It also supports AppEngine but using PyAMF for the AMF encoding/decoding.

    Plasma DS is a new fledgling project aimed at providing a full implementation of Flex Messaging for Python, including all the (sensible) features of LiveCycle Data Services (think of BlazeDS with RTMP support and data synchronisation and conflict resolution. Authors of both projects are committed to this new venture (whenever we find the time :-)) but beware that the project is very much in its infancy – no releases yet.

    With all that said, back to your question 🙂

    I would suggest taking a look at AmFast and see if that satisfies your needs. If not, then I would implement the authentication methods yourself by creating a login service method and updating the session cookie accordingly. For HTTP session support, I would suggest looking at gae-sessions for session support with AppEngine (assuming you are not using Django as part of your webapp – you don’t specify)

    The auth code could be a something as simple as:

    from google.appengine.ext import db
    from gaesessions import get_current_session
    
    class User(db.Model):
        username = db.StringProperty()
        password = db.StringProperty()
    
    def login(username, password):
        q = User.all()
    
        q.filter('username =', username)
        q.filter('password =', password)
    
        user = q.get()
    
        if not user:
            return False
    
        session = get_current_session()
    
        session['user'] = str(user.key())
    
        return True
    

    Disclaimer: Do not use this code in production, there are many security holes and is meant as a guide only.

    Of course, Google provides its own auth mechanisms and you could use them instead (depends if you want the lock-in).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a JSP page retrieving data and when single or double quotes are
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.