Git Product home page Git Product logo

flask-oidc-ex's People

Contributors

alex avatar cfehr247 avatar grakic avatar jeremycline avatar larsw avatar marcvs avatar mprahl avatar ncoghlan avatar puiterwijk avatar pypingou avatar relrod avatar rusox89 avatar ryansmith940 avatar sayanchowdhury avatar stanleykylee avatar steelpangolin avatar trevex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flask-oidc-ex's Issues

Turn off token validation.

Is it possible to turn off token validation somehow? We have our own token validator and we want to use it instead.

Add option for `Host: <address>` for token introspection

Seems i've come across a problem I cannot solve using flask-oidc or flask-oidc-ex.

You need to make sure that you introspect the token using the same DNS hostname/port as the token issuer. Unfortunately that's a not widely documented "feature" of Keycloak.

The workaround is to add to the introspection request a header defining the Host: <address> of the issuer. There is no option to do this in flask-oidc or flask-oidc-ex.

This is defined in OpenID Connect documentation also:

POST "{base_url}/realms/{realm}/protocol/openid-connect/token/introspect" HTTP/1.1
  Host: {issuer_url}  # Issuer Request
  Content-Type: application/x-www-form-urlencoded

  data={
     "token": <...>
     "token_type_hint": "access_token"
     "client_id": <...>
     "client_secret": <...>
  }

https://openid.net/specs/openid-connect-basic-1_0.html

This could be done by adding a new config variable that is loaded in from Flask.

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.