Comments (10)
I've also opened an issue in identity server repo: IdentityServer/IdentityServer3#2727
from identityserver.contrib.azurekeyvaulttokensigningservice.
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.
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.
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.
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.
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.
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.
Hey,
I've published a small adapter as a nuget package. This might help you with this...
from identityserver.contrib.azurekeyvaulttokensigningservice.
Oh, that looks fantastic! I'll get to work on using this soon.
from identityserver.contrib.azurekeyvaulttokensigningservice.
Thank you! Hope it will be usefull :)
from identityserver.contrib.azurekeyvaulttokensigningservice.
Related Issues (16)
- Rename project to match conventions
- Deduplicate code between IS3/IS4 flavours with a "common" library HOT 1
- Support multiple JWKs HOT 1
- Better exception message if IPublicKeyProvider cannot provide a key
- Create some example websites
- Support .NET Standard 1.6 HOT 8
- Add support for a Secondary (fallback) Key Vault
- Add support for a fallback Azure AD secret key
- Write a proper README.md
- Tidy up usage of AzureKeyVaultSignatureProvider in AzureKeyVaultTokenSigningService
- Think about how to properly cache the public key HOT 5
- AzureKeyVaultSignatureProvider.Verify() should be performed locally by default HOT 1
- Create Unit Tests
- Support .net 4.5/C# 5 HOT 3
- Remove the Task.Run from AzureKeyVaultTokenSigningService HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver.contrib.azurekeyvaulttokensigningservice.