GithubHelp home page GithubHelp logo

Comments (10)

omerlh avatar omerlh commented on June 29, 2024

I've also opened an issue in identity server repo: IdentityServer/IdentityServer3#2727

from identityserver.contrib.azurekeyvaulttokensigningservice.

MattCotterellNZ avatar MattCotterellNZ commented on June 29, 2024

I'm not sure how to resolve this one myself. I think you're right: on startup, we fetch the public key from Key Vault, use it to build an X509Certificate2 instance and pass it back to IdentityServer3/4 that way, but seeing as a public key != a certificate, it would be rather messy. I'll poke around the X509Certificate2 implementation in .NET and see what I can do. Watch this space :)

from identityserver.contrib.azurekeyvaulttokensigningservice.

omerlh avatar omerlh commented on June 29, 2024

I am working on it myself right now, it is not easy and the code is pretty much a mess. It is also very ugly because of the dependency between the ITokenSigningService and ISigningKeyService - especially the need to use the same kid. If I will have something that I feel good with, I will share it...

from identityserver.contrib.azurekeyvaulttokensigningservice.

MattCotterellNZ avatar MattCotterellNZ commented on June 29, 2024

Sounds awesome. I do apologize if my code seems in a bit of a state, it's still very much a work in progress at this stage. Let me know if it gets in the way and I'll do what I can to help out.

from identityserver.contrib.azurekeyvaulttokensigningservice.

omerlh avatar omerlh commented on June 29, 2024

This is really fine :) I thought that's the situation...
I am also facing the same problem right now, so I might contribute some PR. My main problem is that I am looking for a generic solution that will allow me to switch between keyvault and PKCS11 easily.

from identityserver.contrib.azurekeyvaulttokensigningservice.

MattCotterellNZ avatar MattCotterellNZ commented on June 29, 2024

Here's hoping your solution in IdentityServer/IdentityServer3#2732 goes through, it looks like this would solve a lot of our problems. Frankly, I've spent the past three hours banging my head against the IdentityServer, .NET and Key Vault APIs and I cannot see a clean way to do this beyond just changing IdentityServer to be more friendly with JWKs instead of requiring X509s.

from identityserver.contrib.azurekeyvaulttokensigningservice.

omerlh avatar omerlh commented on June 29, 2024

I was thinking the same, there is a way but the code become so ugly that I preferred to propose a PR to identity server and hope it will be accepted...

from identityserver.contrib.azurekeyvaulttokensigningservice.

omerlh avatar omerlh commented on June 29, 2024

Hey,
I've published a small adapter as a nuget package. This might help you with this...

from identityserver.contrib.azurekeyvaulttokensigningservice.

MattCotterellNZ avatar MattCotterellNZ commented on June 29, 2024

Oh, that looks fantastic! I'll get to work on using this soon.

from identityserver.contrib.azurekeyvaulttokensigningservice.

omerlh avatar omerlh commented on June 29, 2024

Thank you! Hope it will be usefull :)

from identityserver.contrib.azurekeyvaulttokensigningservice.

Related Issues (16)

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.