Skip to content

Add saml2Metadata to the DSL #11828

Closed
Closed
@marcusdacoregio

Description

@marcusdacoregio

In order to publish the metadata endpoint, we should do:

DefaultRelyingPartyRegistrationResolver relyingPartyRegistrationResolver =
        new DefaultRelyingPartyRegistrationResolver(this.relyingPartyRegistrationRepository);
Saml2MetadataFilter filter = new Saml2MetadataFilter(
        relyingPartyRegistrationResolver,
        new OpenSamlMetadataResolver());

http
    // ...
    .saml2Login(withDefaults())
    .addFilterBefore(filter, Saml2WebSsoAuthenticationFilter.class);

It would be nice if we have a new method in the DSL that achieve the same behavior just by doing:

http
    // ...
   .saml2Login(withDefaults())
   .saml2Metadata(withDefaults());

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions