Re: [pgAdmin4][Patch]: Do not render security URL in templates if running in Desktop mode

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Cc: Harshal Dhumal <harshal(dot)dhumal(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch]: Do not render security URL in templates if running in Desktop mode
Date: 2017-12-18 09:15:54
Message-ID: CA+OCxowFiLDYsH7T2JOpLQBWzyDzcWuZz3dqMs2x8dWKikmCgQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks, applied.

On Thu, Dec 14, 2017 at 4:00 PM, Murtuza Zabuawala <
murtuza(dot)zabuawala(at)enterprisedb(dot)com> wrote:

> Yes Harshal, you are right but due to RM#2922 changes now runtime is
> rendering the Login page.
>
> @Dave,
> Please find updated patch, which will also fix the issue of user login on
> each request in runtime.
> RM#2952
> RM#2922
>
> --
> ​ ​
> Murtuza
>
> On Thu, Dec 14, 2017 at 2:25 PM, Harshal Dhumal <
> harshal(dot)dhumal(at)enterprisedb(dot)com> wrote:
>
>> Hi Murtuza,
>>
>> Moving login related code from under decorator @app.before_first_request
>> to @app.before_request
>> will cause runtime user to login on each request. I think we need to find
>> some better way.
>>
>> --
>> *Harshal Dhumal*
>> *Sr. Software Engineer*
>>
>> EnterpriseDB India: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>> On Thu, Dec 14, 2017 at 2:02 PM, Murtuza Zabuawala <
>> murtuza(dot)zabuawala(at)enterprisedb(dot)com> wrote:
>>
>>> Hi,
>>>
>>> PFA patch to fix the issue where we were rendering Security URL's like
>>> change password, reset password in HTML templates while running in Desktop
>>> mode, we only register these security blueprints in Server mode hence it
>>> was failing with BuildError.
>>> RM#2952
>>>
>>> Also reverted RM#2922 because it not working as expected and causing
>>> runtime to render login screen.
>>>
>>>
>>> Thanks to Neel for helping me in testing the patch with latest runtime
>>> code.
>>>
>>>
>>> --
>>> Regards,
>>> Murtuza Zabuawala
>>> EnterpriseDB: http://www.enterprisedb.com
>>> The Enterprise PostgreSQL Company
>>>
>>>
>>
>

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-12-18 09:23:14 pgAdmin 4 commit: Add tab indexes for debugger controls.
Previous Message Dave Page 2017-12-18 09:15:38 pgAdmin 4 commit: Don't try to render security URLs in desktop mode. Fi