You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AddOktaWebApi method only accepts an instance of OktaWebApiOptions. There is no way to bind the okta options to the underlying configuration so that they are updated when the config is reloaded. The implementation of AddOktaWebApi sets up the JwtBearerOptions with several Okta defaults as well as your passed in config. But none of this code gets re-executed after config reloads.
I can bypass the AddOktaWebApi method altogether and re-implement the logic in my own direct configuration of JwtBearerOptions but that means I'm duplicating the code in the Okta libraries and will likely miss any important updates that are made to these libraries.
I'd like for this library to directly support dynamic config reloads.
I'd also be curious if anyone knows of another work around that would allow me to continue using AddOktaWebApi but retrigger the execution when the underlying config reloads.
Thanks.
The text was updated successfully, but these errors were encountered:
@agilenut,
Thanks for reaching out! We will need to review your request internally to determine how best to address the use case. We'll comment here when there's more.
I would like this as well. This has the added benefit of allowing ASP .NET Core to deslerialize the OktaWebApiOptions directly from appsettings, rather than rely on (possibly misspelled) strings.
We have a requirement to be able to dynamically reload all configuration without requiring an app restart.
This would normally be accomplished by having a config like:
And then configuring the options like:
However, the Okta examples usually ask you to do:
The AddOktaWebApi method only accepts an instance of OktaWebApiOptions. There is no way to bind the okta options to the underlying configuration so that they are updated when the config is reloaded. The implementation of AddOktaWebApi sets up the JwtBearerOptions with several Okta defaults as well as your passed in config. But none of this code gets re-executed after config reloads.
I can bypass the AddOktaWebApi method altogether and re-implement the logic in my own direct configuration of JwtBearerOptions but that means I'm duplicating the code in the Okta libraries and will likely miss any important updates that are made to these libraries.
I'd like for this library to directly support dynamic config reloads.
I'd also be curious if anyone knows of another work around that would allow me to continue using AddOktaWebApi but retrigger the execution when the underlying config reloads.
Thanks.
The text was updated successfully, but these errors were encountered: