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 JdbcRelyingPartyRegistrationRepository #16012

Open
sasirekha98 opened this issue Oct 30, 2024 · 2 comments
Open

Add JdbcRelyingPartyRegistrationRepository #16012

sasirekha98 opened this issue Oct 30, 2024 · 2 comments
Labels
status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement A general enhancement

Comments

@sasirekha98
Copy link

sasirekha98 commented Oct 30, 2024

I have an application where the SP metadata is generated as XML and put in the database. We pull the XML and generate the authentication request. When I want to move to Spring Security, I don't find the same option where I can get the relying party details from the data source or directly provide the XML file location.

Currently, as per my understanding, we have the option to load the XML file of the IDP through metadata locations through spring security like this

RelyingPartyRegistrations
.fromMetadataLocation(oktaMetadataUrl)
.registrationId("okta")).build();

Similar to that, it would be nice to have an option where we can load the relying party details when we have them in the database or some location already. We just need to load that file instead of adding the details one by one to the RelyingpartyRegistration.

it will be easier if I have an option where I have to mention the metadata location of the sp as well like this
RelyingPartyRegistrations
.fromMetadataLocationofSP(location)
.fromMetadataLocationofIDP(oktaMetadataUrl)
.registrationId("okta")).build();

@sasirekha98 sasirekha98 added status: waiting-for-triage An issue we've not yet triaged type: enhancement A general enhancement labels Oct 30, 2024
@sasirekha98 sasirekha98 changed the title There is no option to create relyingparty details similar to the RelyingPartyRegistrations for assertingparty in saml2 There is no option to create relyingparty details through datasource in saml2 Oct 30, 2024
@jzheaux jzheaux changed the title There is no option to create relyingparty details through datasource in saml2 Add JdbcRelyingPartyRegistrationRepository Nov 8, 2024
@jzheaux
Copy link
Contributor

jzheaux commented Nov 8, 2024

Thanks for the suggestion, @sasirekha98. Are you interested in supplying a PR for this? You can look at the various JdbcXXX classes already in Spring Security for guidance.

@jzheaux jzheaux added status: ideal-for-contribution An issue that we actively are looking for someone to help us with and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 8, 2024
@wapkch
Copy link

wapkch commented Nov 14, 2024

@jzheaux May i work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants
@jzheaux @wapkch @sasirekha98 and others