|
|
|
@ -16,6 +16,7 @@ public class OpenIdController(
|
|
|
|
|
Issuer = "http://localhost:1234",
|
|
|
|
|
AuthorizationEndpoint = "http://localhost:1234/oauth/authorize",
|
|
|
|
|
TokenEndpoint = "http://localhost:1234/oauth/token",
|
|
|
|
|
UserInfoEndpoint = "http://localhost:1234/oauth/user",
|
|
|
|
|
JwksUri = "http://localhost:1234/.well-known/jwks.json",
|
|
|
|
|
ScopesSupported = ["openid"],
|
|
|
|
|
ResponseTypesSupported = ["code"],
|
|
|
|
@ -34,7 +35,7 @@ public class OpenIdController(
|
|
|
|
|
|
|
|
|
|
[HttpGet("/.well-known/jwks.json")]
|
|
|
|
|
public ActionResult<JwksResponse> GetJwks() {
|
|
|
|
|
var rsaSecurityKey = new RsaSecurityKey(jwtService.RsaKey) {
|
|
|
|
|
var rsaSecurityKey = new RsaSecurityKey(jwtService.RsaKey.ExportParameters(false)) {
|
|
|
|
|
KeyId = "TODO; keyid"
|
|
|
|
|
};
|
|
|
|
|
var jsonWebKey = JsonWebKeyConverter.ConvertFromRSASecurityKey(rsaSecurityKey);
|
|
|
|
|