How do I fix this: Your connection isn't private - python

When I try to enter my webpage I get this in Chrome and Edge.
I have the https.
security
error

You need to configure a certificate for your web app. Under the "Security" section on your web app configuration page.

Related

Snowflake Python connection using externalbrowser authenticator

I have code to connect to Snowflake through Python using external browser authentication (authenticator parameter set to 'externalbrowser')
I also have installed snowflake-connector-python version 2.3.5
On my machine running snowflake.connector.connect displays the following message, but doesn't open any browser windows to do the authentication:
"Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again..."
On my old machine it displays the same message, but opens a browser window to log in. What do you think can be causing this problem, and what can I do to fix this? Am I missing a package?
You want to try the troubleshooting suggested by Snowflake blog here EXTERNAL BROWSER SSO FROM CONNECTOR FAILS ON REDIRECT BACK TO LOCALHOST
I ran into the same issue, and do not set parameter "authenticator" to 'externalbrowser', if its optional you can remove this parameter and test.
after i remove "authenticator" parameter from my config file, I was able to authneticate and establish connection to snowflake.
You can try by allowing the pop up in your browser in the system settings

Is there any way I could read Web Push notifications sent from a website to Chrome from Python?

There's a website I use that sends me notifications using Web Push. So I'm receiving these notifications just fine on macOS via Chrome. I'd like to forward these notifications to an iOS device via Pushbullet but the website doesn't provide a way to do so.
So I solved it right now by reading macOS' notifications sqlite database and sending the ones I want to Pushbullet's API and I receive them on my phone. I was wondering if there's any better way.
I tried opening the Chrome DevTools and recording Background Services → Push Messaging and I can see a log of notifications in json. How can I read those notifications?
This may not be the answer that you're looking for, but have you considered installing Google Chrome on your smartphone and registering that device with the website for push notifications? As pointed out in the comment, Chrome on iOS does not support Web Push.
Another suggestion: while creating the push subscription the website also registers a service worker. This service worker responds to incoming push events. If you open Chrome DevTools, go to to the Sources tab, and open the service worker, you can add whatever code you want. I'm not sure if this change persists when you exit Chrome though.

Using IIS to show Bokeh dashboard

I am new to Internet Information Services for Windows. I have a Bokeh dashboard ready and I can serve it using the terminal and the command
bokeh serve app_myapp/ --port 5200 --allow-websocket-origin=my_IP_address
In IIS, I have set up the Host Name (xx.yyy.com) and the Port (80), and the Physical Address is C:\inetpub\wwwroot\some_blank_htm_file
Currently xx.yyy.com shows my blank file, but I don't know how to connect serving my bokeh dashboard with IIS settings.
I would greatly appreciate any help.
Do you mean you want to show the bokeh dashboard when you use xx.yyy.com address?
In my opinion, the most easily way is using the IIS url rewrite to achieve your requirement.
You could install it from this url.
Then you could redirect all the request to the port 5200 by using below config setting.
<rewrite>
<rules>
<rule name="Reverse Proxy to webmail" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:5200/{R:1}" />
</rule>
</rules>
</rewrite>
More detials about how to use reverse proxy, you could refer to this article.
The goal is to use IIS as a reverse proxy. IIS is not a reverse proxy by default, so we have to add some modules and then start the configuration. These are all the steps I took:
Install the URL Rewrite package from the Downloads section on the IIS website.
Install the ARR (application request routing) module from the Downloads section on the IIS website.
In IIS, under sites, add a new website and set the Host Name to your FQDN. Also, Choose a Site Name and a Physical Path (I think it doesn't matter what.) and click OK.
In the left pane, double-click on the website you created. In the modules, double-click on URL Rewrite, then click on Add Rule(s), choose Reverse Proxy and click OK. Then in the new window type 127.0.0.1:my_bokeh_port and hit OK.
From the left pane, double-click on the main tree node with your server name on it, and from the modules, double-click on Application Request Routing Cache. In the right pane, choose Enable proxy, and set HTTP version to Pass through.
Use this guide to set Server Farms. Honestly, I'm not really sure if this step is necessary, but since I had done it before some of the former steps I just mentioned, I thought it might be.
Close and restart IIS.
Now, if you go to your website in your browser, you will probably see your address (for example x.y.'com') change to x.y.'com'/app_myapp. If you can also see your dashboard, then that's all. If not, however, it means that your firewall is blocking the WebSocket connection. You can use this guide to allow a TCP connection to your Bokeh port.
Hopefully, now you can refresh and see your dashboard.

Django let me log in in Firefox but not in chrome

I recently started playing with Django.
When I try to log in into the admin panel, it succeeds in Firefox but doesn't in Google Chrome.
This is the error i get :
Forbidden (CSRF cookie not set.): /admin/login/
My cookies are enabled in Chrome for every website. Is there a specific reason why it would work in Firefox but not in Chrome?
Thanks!
I had similar problem and the solution for me was to set Django setting
SESSION_COOKIE_SECURE = False
I know this is the default setting but I've been using production config with this set to True. So in my dev settings I changed it to False and was able to log in to admin panel in Chrome.
On Feb 2020 Chrome implemented a change that enforces that Secure cookies are only accessible via HTTPS protocol. So if you're developing locally and only using HTTP that is a killer. Firefox and Edge are yet to enforce Secure flag |(based on taday's versions)
Are you not developing using the c9 platform?
https://c9.io/
I reset my chrome setting and it worked fine.
In Chrome, click on the 3 dots on the far right and goto settings.
On settings page, scroll all the way down or click on the bottom left "Reset Settings" button and reset settings.

Installing Chrome Native Client SDK

For the last few days I have been trying ti install the Native Client SDK for chrome in Windows and/or Ubuntu.
I'm behind a corporate network, and the only internet access is through an HTTP proxy with authentication involved.
When I run "naclsdk update" in Ubuntu, it shows
"urlopen error Tunnel connection failed: 407 Proxy Authentication Required"
Can anyone please help ?
Try to download this file:
http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/naclsdk_manifest2.json
It is the native client update summary, but in the URL I replaced the https with http. If you view the JSON file, you will see the different pepper_xx versions available. Use the links to download the one you want, but again replace https with http.
The naclsdk update tool is very difficult to use for those of us behind a strict firewall. It would be nice if Google provided a direct link to the latest SDK.
I got a solution-
not a direct one, though.
managed to use a program to redirect the HTTPS traffic through the HTTP proxy.
I used the program called "proxifier". Works great.

Categories

Resources