Update OpenId/SAML2 (WsFederation) after startup
up vote
0
down vote
favorite
We have an asp.net core website that configures a bunch of database setups for SSO that are OpenId and Saml2 endpoints. These change or are added in a UI for Administrators as necessary.
Right now we have to recycle the app pool to update these because they're created and updated in the Startup.cs from the database.
I'm trying to find a way to be able to do CRUD on these at runtime but I can't find any documentation on how to get the AuthenticationBuilder and even if I could get it with injection, I can't find anything that would allow me to remove or edit existing ones, only add.
Anyone know how to get at this information ad update these dynamically at runtime?
asp.net-core saml-2.0 openid-connect openid-provider
|
show 1 more comment
up vote
0
down vote
favorite
We have an asp.net core website that configures a bunch of database setups for SSO that are OpenId and Saml2 endpoints. These change or are added in a UI for Administrators as necessary.
Right now we have to recycle the app pool to update these because they're created and updated in the Startup.cs from the database.
I'm trying to find a way to be able to do CRUD on these at runtime but I can't find any documentation on how to get the AuthenticationBuilder and even if I could get it with injection, I can't find anything that would allow me to remove or edit existing ones, only add.
Anyone know how to get at this information ad update these dynamically at runtime?
asp.net-core saml-2.0 openid-connect openid-provider
1
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We have an asp.net core website that configures a bunch of database setups for SSO that are OpenId and Saml2 endpoints. These change or are added in a UI for Administrators as necessary.
Right now we have to recycle the app pool to update these because they're created and updated in the Startup.cs from the database.
I'm trying to find a way to be able to do CRUD on these at runtime but I can't find any documentation on how to get the AuthenticationBuilder and even if I could get it with injection, I can't find anything that would allow me to remove or edit existing ones, only add.
Anyone know how to get at this information ad update these dynamically at runtime?
asp.net-core saml-2.0 openid-connect openid-provider
We have an asp.net core website that configures a bunch of database setups for SSO that are OpenId and Saml2 endpoints. These change or are added in a UI for Administrators as necessary.
Right now we have to recycle the app pool to update these because they're created and updated in the Startup.cs from the database.
I'm trying to find a way to be able to do CRUD on these at runtime but I can't find any documentation on how to get the AuthenticationBuilder and even if I could get it with injection, I can't find anything that would allow me to remove or edit existing ones, only add.
Anyone know how to get at this information ad update these dynamically at runtime?
asp.net-core saml-2.0 openid-connect openid-provider
asp.net-core saml-2.0 openid-connect openid-provider
asked Nov 19 at 20:16
James Hancock
1,26712335
1,26712335
1
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50
|
show 1 more comment
1
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50
1
1
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382004%2fupdate-openid-saml2-wsfederation-after-startup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Do I understand you correctly that you're trying to add/remove SAML and OpenID endpoints dynamically at runtime, in what I would assume is a kind of multi-tenant application?
– Wim Ombelets
Nov 20 at 12:29
That's right. Also need to be able to edit them in case a setting doesn't work, but of course we could remove and then add again if that's the only way.
– James Hancock
Nov 20 at 12:32
I won't add this as an answer because I don't want to take credit for someone else's work but have a look at Generic and Dynamic Controllers in asp.net core mvc - strathweb.com/2018/04/… as I believe it could solve your problem or at least point you in a possible direction.
– Wim Ombelets
Nov 20 at 12:34
Sorry, not sure how this helps. We use generic controllers extensively, but the oidc and saml2 support is a configuration option. I need to get at the configuration data and be able to add and remove them from my controllers instead of at startup. I can't find any methods that allow me to do so, or any way to get at the collection either.
– James Hancock
Nov 20 at 12:44
So you're trying to limit what kind of protocols to allow for a particular tenant at runtime?
– Wim Ombelets
Nov 20 at 12:50