Re: How to implement a webhook URL and authenticated pages separately in a CherryPy app?

Sviatoslav Sydorenko <[email protected]> Mon, 27 Aug 2018 02:03:10 +0200
Newsgroups gmane.comp.python.cherrypy
Message-ID <CAFYONRA3J2QDKPvexG+CfhnWPeDrR-qKaEx6KX1GRh=zBMeGow@mail.gmail.com>
Hi,

You need a tool. Docs here:
http://docs.cherrypy.org/en/latest/extend.html#per-request-functions
Enable it where you need a shield, disable for a webhook handler.

нд, 26 серп. 2018 о 06:47 ARN NN <[email protected]> пише:

> Hi,
>
> I'm using CherryPy at work to build a demo web-app (still relatively new
> to Cherrypy).
> I have a specific functionality I need to implement.
>
> The web app has two parts :
>  1 - A front end that end-users interact with. It  has several dynamically
> generated pages.
>  2 - A URL which accepts a webhook (JSON) from a another application as an
> HTTP or HTTPS POST.
>
> We need the user facing pages to have authentication enabled (LDAP/AD or
> SSO) while the part that accepts the webhook should be open.
> How can this be implmented in CherryPy ?
> Are there any existing examples of this ?
>
> Thanks in advance.
> Rann
>
> --
> 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.
>


-- 
Cheers,
Sviatoslav.

-- 
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.