Giter VIP home page Giter VIP logo

az-jwt's People

Contributors

ivangeorgiev avatar

Watchers

 avatar

az-jwt's Issues

Use offline metadata

There are scenarios where the application cannot access Internet (Azure AD) directly, but still needs to be able to validate provided tokens.

Construct metadata configuration endpoint for a given tenant

In common cases metadata configuration endpoint could be constructed using a template. The URL could be used to retrieve metadata configuration of Azure AD tenant.

There are multiple scenarios (I might not be aware of all of them). For that reason the endpoint construction is not part of Azure AD metadata discovery (OpenIdDiscovery class), but is rather a parameter.

Cache Azure AD metadata calls

Client code needs that calls to Azure AD are cached so that bandwidth is preserved is latency is smaller.

There is no need that each time keys or metadata configuration is needed, we retrieve them from Azure AD. Changes to Azure AD tenant metadata are so rear that we could pre-fetch the metadata and use it offline.

Convert key from JWK into RSA PEM

RSA PEM is a common format used to validate signatures. It is used, for example, by pyJWT package. Client code need an easy way to convert JWK keys, provided by Azure AD tenant metadata to RSA PEM keys.

Get a specific public signature key

JWT tokens specify in the header the identifier of the key (kid) used to sign the payload. I want to be able to get the key easily, e.g. via a single method call.

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.