Make dynamic provider "signin" endpoint customizable #174
Replies: 2 comments
-
The requirement for a specific hard coded path patterns is indeed causing issues for many customers. While you are the first to open a request for it, I've seen similar needs in the past. Instead of introducing a RegEx, I would suggest adding a callback instead. Anyone who wants can implement the callback as a regex, but it also enables other behaviours, including querying a datastore/cache. |
Beta Was this translation helpful? Give feedback.
-
Hi @geoffroybraun. We'll consider increasing the flexibility of the callback paths in a future release - either with a regex as your suggest, or possibly with a callback as Anders described. In the short term, one strategy that often works pretty well if you're transitioning to dynamic providers is to keep your existing providers that you don't want to change the urls for configured statically, but then have new external providers added to the dynamic providers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
first time posting here, I'll try to be as clear and precise as possible.
Context
I'm currently working on implementing the dynamic provider feature, which perfectly works BTW. This is following a first POC we designed a few months ago before actually engaging our development team on this feature implementation. The idea was basically to do everything we had to for dynamic providers to work without actually having everything in our databse, it was all in-memory.
Problem
At that time, because we did not use the dynamic providers feature, we missed the
/federation/{my-oidc-provider}/signin
required URI and asked our clients to configure another URI which was/signin-{my-oidc-provider}
. Now that we are trying to fully use the feature, we have to create a fake endpoint/signin-{my-oidc-provider}
which internally redirects to the hard-coded/federation/{my-oidc-provider}/signin
URI.Proposal
Within the
DynamicSchemeAuthenticationMiddleware
class which uses aDynamicProviderOptions
instance, it will be helpful to make this hard-coded URI manageable from the options. They would look something like this:With the new
PathExpression
property, the middleware would now be able to choose whether to use the prefix or the expression as explained below:In our case, we would define the dynamic providers options like this:
Documentation
As the options are already described in the documentation, we simply have to explain this optional behavior.
Please let me know if you think this suggestion merits further consideration, or if it is not acceptable to you for any reason.
Cheers,
Geoffroy
Beta Was this translation helpful? Give feedback.
All reactions