Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unable to self.redirect() to external url (trying to implement OpenID consumer)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
danil.mail@gmail.com  
View profile  
 More options May 6 2008, 9:23 pm
From: "danil.m...@gmail.com" <danil.m...@gmail.com>
Date: Tue, 6 May 2008 18:23:29 -0700 (PDT)
Local: Tues, May 6 2008 9:23 pm
Subject: Unable to self.redirect() to external url (trying to implement OpenID consumer)
Hi, App Engine people!

I'm trying to implement OpenID consumer with Google App Engine. I used
python-openid 2.x and wrote all needed adaptations for working in App
Engine (user sessions with datastore backend, datastore "store"
interface and urlfetch instead of urlopen). I tested it with developer
server and it works ok!
Than I uploaded project to Google. After trying to login with OpenID
appears page with error code 302:

<HTML><HEAD><meta http-equiv="content-type" content="text/
html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="">here</A>.
</BODY></HTML>

Afer digging my project code I detected that this error occurs while
application tries to redirect to OpenID provider. Python-openid
library successfully generates this url after some discovering. Here
it is (e.g.):

http://www.myopenid.com/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B...

Yes, it's huge. And App Engine can not redirect to this url as I sad
before. It there some restrictions on url length or something else?
When I removed SRE part of query ("&openid.ns.sreg=http%3A%2F
%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.sreg.optional=fullname
%2Cnickname%2Cemail") than redirecting finished well.

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Ellin  
View profile  
 More options May 24 2008, 5:48 pm
From: Brian Ellin <brianel...@gmail.com>
Date: Sat, 24 May 2008 14:48:50 -0700 (PDT)
Local: Sat, May 24 2008 5:48 pm
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
I also have encountered this problem.  These redirects work find in
local development, but fail on the live appengine server.  I'm not
sure what happens within appengine or webapp to cause this, but I get
around it using a a meta redirect:

self.response.out.write("<html><head><meta http-equiv=\"refresh\"
content=\"0;url=%s\"></head><body></body></html>" % (redirect_url,))

Cheers,
Brian Ellin
JanRain, Inc.

On May 6, 6:23 pm, "danil.m...@gmail.com" <danil.m...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ryan  
View profile  
 More options May 27 2008, 9:24 pm
From: ryan <ryanb+appeng...@google.com>
Date: Tue, 27 May 2008 18:24:22 -0700 (PDT)
Local: Tues, May 27 2008 9:24 pm
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
hi brian, danil. you're absolutely right, we do intercept some
redirects for security reasons, which breaks apps like openid
consumers and providers. this is why http://openid-provider.appspot.com/
currently fails on many consumers.

it's not a high priority, but we do plan to look into this eventually.
feel free to file an issue on the issue tracker and star it; if it
gets enough votes, that will help convince us to prioritize the fix!

btw, i'm working on a sample openid consumer app. it's deployed at
http://openid-consumer.appspot.com/, and the source is available at
http://code.google.com/p/google-app-engine-samples/source/browse/trun....
it's rough, but apart from this problem, it's fully functional.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aral Balkan  
View profile  
 More options Jun 11 2008, 4:35 am
From: Aral Balkan <aralbal...@gmail.com>
Date: Wed, 11 Jun 2008 01:35:04 -0700 (PDT)
Local: Wed, Jun 11 2008 4:35 am
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
Hi Ryan,

Thanks for the update, I've blogged a post to gain more exposure for
this (http://aralbalkan.com/1357) and I've asked people to star issue
17 (http://code.google.com/p/googleappengine/issues/detail?id=17). Is
this the correct issue they should be starring for this?

(It appears that the conversation on that issue has come round to the
topic on this thread.)

If not, which issue should I be asking people to star?

We're _so_ close to having OpenID support on Google App Engine that I
feel this should be a very high priority for Google (i.e., the
relative work vs. what it will mean in terms of ultimate payoff is
really high!) I know that being able to implement OpenID for the
Singularity web conference application I'm building is very important
for me personally.

And thank you so much for your work in creating the consumer
application. Once we have the redirects working, that should get
developers up and running quickly to consume OpenID in their apps.

Thanks,
Aral

On May 28, 2:24 am, ryan <ryanb+appeng...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ryan  
View profile  
 More options Jun 11 2008, 12:50 pm
From: ryan <ryanb+appeng...@google.com>
Date: Wed, 11 Jun 2008 09:50:57 -0700 (PDT)
Local: Wed, Jun 11 2008 12:50 pm
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
Thanks! The redirect issue is actually 404,
http://code.google.com/p/googleappengine/issues/detail?id=404. Feel
free to plug that one instead.

I've been interpreting issue 17 as a feature request to build OpenID
support into App Engine directly, either in the backend or in a Python
library we ship. As I mentioned on that issue, that's not really
necessary, since OpenID libraries can be included by app developers
with their code, As you saw, that's what we did with http://openid-provider.appspot.com/
and http://openid-consumer.appspot.com/. Once the redirect bug is fix,
those existing libraries will work with all other providers and
consumers, not just a few.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ryan  
View profile  
 More options Jun 11 2008, 12:57 pm
From: ryan <ryanb+appeng...@google.com>
Date: Wed, 11 Jun 2008 09:57:07 -0700 (PDT)
Local: Wed, Jun 11 2008 12:57 pm
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
Sorry, I misspoke. 404 is a different feature request. It looks like
there's no issue on the public issue tracker for this redirect bug.
We're definitely aware of it, but if you're still encouraging people
to star an issue, feel free to either repurpose issue 17 or create a
new one!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ross Ridge  
View profile  
 More options Jun 11 2008, 4:13 pm
From: Ross Ridge <rri...@csclub.uwaterloo.ca>
Date: Wed, 11 Jun 2008 13:13:53 -0700 (PDT)
Local: Wed, Jun 11 2008 4:13 pm
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)

ryan wrote:
> Sorry, I misspoke. 404 is a different feature request. It looks like
> there's no issue on the public issue tracker for this redirect bug.

I believe it's issue 407:

     http://code.google.com/p/googleappengine/issues/detail?id=407

                                             Ross Ridge


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tudorizer  
View profile  
 More options Jul 29 2008, 9:06 am
From: tudorizer <tudori...@gmail.com>
Date: Tue, 29 Jul 2008 06:06:46 -0700 (PDT)
Local: Tues, Jul 29 2008 9:06 am
Subject: Re: Unable to self.redirect() to external url (trying to implement OpenID consumer)
Any updates on the fix?
I went to http://openid-consumer.appspot.com/ and tried to login with
my wordpress account and it didn't work.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »