Giter VIP home page Giter VIP logo

Comments (4)

a-n-t-h-o-n-y avatar a-n-t-h-o-n-y commented on August 13, 2024 2

It looks like the verify constructor parameter of KeycloakOpenID, KeycloakAdmin and KeycloakOpenIDConnection are passed directly to the requests.Session calls, so it can be a certificate path. The python-keycloak docs could be more informative:

:param verify: True if want check connection SSL
:type verify: bool

The following works for me:

connection = KeycloakOpenIDConnection(
    server_url="...",
    username="...",
    password="...",
    realm_name="...",
    verify="/path/to/cert.pem",
)

from python-keycloak.

gianfabiopezzolla avatar gianfabiopezzolla commented on August 13, 2024

You have found some solutions for this?

from python-keycloak.

EvandoBlanco avatar EvandoBlanco commented on August 13, 2024

@kapadiup @sagolab

I was recently able to resolve this. I don't have the code in front of me, so some variable names may be wrong. But you can add a certificate path directly to the requests.Session like this:

connection = keycloak_client._connection
connection._s.cert = "/path/to/certificate"
keycloak_client._connection = connection

I hope this helps.

from python-keycloak.

lokeish avatar lokeish commented on August 13, 2024

There is no such method connection._s.cert, can you help with exact code snippet.

from python-keycloak.

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.