Re: Redirect GET to POST

"Joseph S. Tate" <[email protected]> Tue, 13 Jun 2017 17:38:24 +0000
Newsgroups gmane.comp.python.cherrypy
Message-ID <CA+WDQbFF03iCoBdM03t2kEWkQ+-nGSpVf65bQX5hBGX41iPKKw@mail.gmail.com>
So you want to bypass the user's consent?



On Tue, Jun 13, 2017 at 12:57 PM Aaron Dalton <[email protected]>
wrote:

> To be specific, I'm implementing oauth. When a third party requests access
> on behalf of the user, the user needs to see and approve the permissions
> the third party is requesting. That's the form generated by the GET. The
> user's responss then gets POSTed to the authorizer endpoint that actually
> returns a valid access token (or not). But for the official front end, I
> want to streamline it so it gets auto-authorized.
>
> The simplest way I can see while maintaining the consistency of the
> workflow and isolation of the code is to redirect in this GET code to the
> POST point. Is it simply not possible to do?
>
>
> On Tuesday, 13 June 2017 10:35:57 UTC-6, Joseph Tate wrote:
>>
>> Don't. Make that first GET endpoint a POST endpoint and do the work there
>> directly. Why do two requests when one will do?
>>
>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> Visit this group at https://groups.google.com/group/cherrypy-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.