Git Product home page Git Product logo

Comments (7)

jakobfp avatar jakobfp commented on July 16, 2024 4

I have the same issue.

With using --external I noticed that in my case the response headers are capitalized, e.g. Prelogin-Cookie or Saml-Username. Thus, they are not filtered in line https://github.com/dlenski/gp-saml-gui/blob/master/gp_saml_gui.py#L124 and the GUI is stuck.

This patch of https://github.com/dlenski/gp-saml-gui/blob/master/gp_saml_gui.py made it work for me:

@@ -119,7 +119,7 @@ class SAMLLoginView:
 
         # convert to normal dict
         d = {}
-        h.foreach(lambda k, v: setitem(d, k, v))
+        h.foreach(lambda k, v: setitem(d, k.lower(), v))
         # filter to interesting headers
         fd = {name:v for name, v in d.items() if name.startswith('saml-') or name in ('prelogin-cookie', 'portal-userauthcookie')}
         if fd and self.verbose:

from gp-saml-gui.

wtcline-intc avatar wtcline-intc commented on July 16, 2024 1

@dlenski Confirming that 085d327 fixes the issue, thank you!

from gp-saml-gui.

dlenski avatar dlenski commented on July 16, 2024

Well, gp-saml-gui probably didn't magically break itself. What else changed… either on your system or on the VPN/SAML server?

Use gp-saml-gui --external to open the SAML login flow in an external browser, where you can step through it with the debugger (e.g. Chrome or Firefox dev tools).

from gp-saml-gui.

bzahariev avatar bzahariev commented on July 16, 2024

Don't know how to use a browser debugger but one thing that have changed is that now I need to use --allow-insecure-crypto so something must have changed on those servers. How should I debug that?

from gp-saml-gui.

dlenski avatar dlenski commented on July 16, 2024

Don't know how to use a browser debugger …

Your ability and motivation to learn to use relevant tools to gain additional information… almost certainly outstrips my ability and motivation to make speculative guesses about what's going with your client, or server, or intermediate systems.

How should I debug that?

Among other things, perhaps add some logging statements around the apparent source of the exception, according to your screenshot.
https://github.com/dlenski/gp-saml-gui/blob/master/gp_saml_gui.py#L113

… but one thing that have changed is that now I need to use --allow-insecure-crypto so something must have changed on those servers.

Either that or you upgraded your packages and/or OS to a version that's more picky about rejecting obsolete/potentially-insecure crypto. But again, I'm speculating based on little to no information.

from gp-saml-gui.

bzahariev avatar bzahariev commented on July 16, 2024

Don't have the time to give to side projects but I solved my issue by installing https://github.com/yuezk/GlobalProtect-openconnect , works like a charm. May revisit in the future when I have more time.
Thx for your help though

from gp-saml-gui.

dlenski avatar dlenski commented on July 16, 2024

Thank you @jakobfp for the clear actionable finding here. Pushed this change as 085d327.

from gp-saml-gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.