Skip to content
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

Add IServiceProvider as an input to AddAuth0AuthenticationClient #19

Closed
JasonWeinzierl opened this issue Jul 20, 2023 · 1 comment · Fixed by #22
Closed

Add IServiceProvider as an input to AddAuth0AuthenticationClient #19

JasonWeinzierl opened this issue Jul 20, 2023 · 1 comment · Fixed by #22
Milestone

Comments

@JasonWeinzierl
Copy link

It would be nice to have IServiceProvider available to fetch other services for populating configuration.

services.AddAuth0AuthenticationClient((config, provider) => {
    var configuration = provider.GetRequiredService<IConfiguration>();

    config.Domain = configuration["AUTH0_DOMAIN"];
    // etc.
});
@Hawxy
Copy link
Owner

Hawxy commented Jul 20, 2023

Adding the overload isn't a big deal so I'll throw it into the next version, but IConfiguration is already readily available via *ApplicationBuilder/Startup.cs, which would be accessible to wherever this is being called.

@Hawxy Hawxy added this to the v3.1 milestone Jul 20, 2023
@Hawxy Hawxy mentioned this issue Dec 21, 2023
@Hawxy Hawxy closed this as completed in #22 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants