-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idsvr uriprovider #637
Idsvr uriprovider #637
Conversation
Hi @AroglDarthu Can you explain with more details this scenario? Typically the authority uri is con your configuration and you can use IConfiguration when registered the healtcheck. What kind of scenaris is enabled using the Func<IServiceProvider,Uri>?? |
We have dedicated objects that read from configuration. These get
registered via "services.Configure<DedicatedPoco>". So we can just inject
these wherever needed. We prefer to also use these in the healthcheck
instead of giving the healthcheck the knowledge about how to obtain the
values from IConfiguration.
Op vr 25 sep. 2020 13:11 schreef Unai Zorrilla <notifications@github.com>:
… Hi @AroglDarthu <https://github.com/AroglDarthu>
Can you explain with more details this scenario? Typically the authority
uri is con your configuration and you can use IConfiguration when
registered the healtcheck. What kind of scenaris is enabled using the
Func<IServiceProvider,Uri>??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#637 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKFLZXHWZY4UQOXBQUKZBLSHR3GXANCNFSM4RSEABXA>
.
|
@AroglDarthu Please rebase onto |
That would be nice. I'll look into it as soon as I can. |
ping @AroglDarthu |
@sungam3r sorry for the long wait! |
src/HealthChecks.OpenIdConnectServer/DependencyInjection/IdSvrHealthCheckBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
…HealthCheckBuilderExtensions.cs
src/HealthChecks.OpenIdConnectServer/DependencyInjection/IdSvrHealthCheckBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/HealthChecks.OpenIdConnectServer/DependencyInjection/IdSvrHealthCheckBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
…HealthCheckBuilderExtensions.cs
src/HealthChecks.OpenIdConnectServer/DependencyInjection/IdSvrHealthCheckBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
…HealthCheckBuilderExtensions.cs
The last step - update API approval file. |
test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.approved.txt
Outdated
Show resolved
Hide resolved
…dConnectServer.approved.txt
@AroglDarthu Problem with line endings. |
What this PR does / why we need it:
Add overload to IdSvrHealthCheck which enables the uri to be resolved from the IServiceProvider.
Does this PR introduce a user-facing change?:
No
Please make sure you've completed the relevant tasks for this PR, out of the following list:
[ x] Code compiles correctly
[ x] Created/updated tests
[ x] Unit tests passing
[ x] End-to-end tests passing
[ -] Extended the documentation
[ -] Provided sample for the feature