As I know py2web already stores _session_token as jwt, no? On Thursday, February 20, 2020 at 10:00:00 PM UTC+3, Kevin Keller wrote: > > With a Spa the routing is done in Javascript in the Browser. > > So Javascript or Vue / React etc need. To check if the user has a access > or id_token and if not redirect to the login page to obtain it. > > Doing crud and be able to secure those crud rest routes will be critical > for productivity. > > So we need a simple jwt token minting engine that at least can spit out a > access token for prototyping and and easy way to switch over to other IAM > solutions with py4web for production that can do the token minting. > > That is something I am currently working on the whole oidc auth part make > it easy and I also want to make it available for web2py. > > I have updated and got the oauth2 login provider working with Okta > yesterday and web2py. > > Will share this. Code asap and sent a push to git to have that provider > updated and at some providers for different IAM solutions for both web2py > and py4web going forward. > > Will try to share an example with py4web asap once I have something > working. > > Will probaly be on the. Weekend. > > > > > > > On Thu, 20 Feb 2020, 10:42 Val K, <[email protected] <javascript:>> wrote: > >> check request.content_type - is that 'application/json' ? >> >> On Thursday, February 20, 2020 at 9:28:43 PM UTC+3, Ramos wrote: >>> >>> getting this from py4web as an api. >>> [image: image.png] >>> Is not what i would like to see from a SPA standpoint. >>> >>> Regards >>> António >>> >>> >>> Em qui., 20 de fev. de 2020 às 18:03, Val K <[email protected]> >>> escreveu: >>> >>>> It seems it depends on request.content_type >>>> >>>> https://github.com/web2py/py4web/blob/e6b3d5e10e15976af153c4a4e6b349a02fe6c2a9/py4web/utils/auth.py#L35 >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/web2py/9608a9ab-d338-4580-9d02-31b9b9a30782%40googlegroups.com >>>> . >>>> >>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/77ac539d-a83e-4931-ae79-424c3a4711fd%40googlegroups.com >> >> <https://groups.google.com/d/msgid/web2py/77ac539d-a83e-4931-ae79-424c3a4711fd%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/1e3387f6-bf14-406f-9c6b-306a06630961%40googlegroups.com.

