Re: How to implement a webhook URL and authenticated pages separately in a CherryPy app?
Sviatoslav Sydorenko <[email protected]> Mon, 27 Aug 2018 09:36:20 +0200
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <CAFYONRDAiL-Vy1x6-+Rp7usnQKkXfr1HFhZNxR8NE=P+uALimg@mail.gmail.com> |
Yes, you can enable it in only one app config. пн, 27 серп. 2018 о 06:12 ARN NN <[email protected]> пише: > Thank you, I'll look into per-request functions. > I have a related question after going though some Cherrypy docs : > Can my requirement be implemented by mounting different apps (objects) on > a Cherrypy instance and having a separate configuration for the apps ? > > For reference : > http://docs.cherrypy.org/en/latest/basics.html#multiple-applications > > http://docs.cherrypy.org/en/latest/basics.html#per-application-configuration > > > > On Sunday, August 26, 2018 at 5:03:25 PM UTC-7, Sviatoslav Sydorenko > (@webknjaz) wrote: >> >> 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 >>> >>> >> -- >> 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. > -- 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.