IdentityPython / SATOSA

Proxy translating between different authentication protocols (SAML2, OpenID Connect and OAuth2)
https://idpy.org
Apache License 2.0
199 stars 122 forks source link

satosa-saml-metadata script could be more flexible wrt output file names #423

Open dnmvisser opened 1 year ago

dnmvisser commented 1 year ago

Currently the satosa-saml-metadata script creates a metadata file called backend.xml, or, when creating split metadata files, filenames that include an index number:

https://github.com/IdentityPython/SATOSA/blob/c629dd5dfce44675bc263241c880a6481ccb33d6/src/satosa/scripts/satosa_saml_metadata.py#L23

So, when one starts to use --split-backend (or --split-frontend), this will cause a change in the generated filenames, which can be problematic as other system might rely on them (aggregator tools etc).

The script could have some options to influence the output file names. Some ideas:

c00kiemon5ter commented 1 year ago

I am planning to do a rewrite but it is not very high on my list. The idea is to switch to poetry, use typer, rework the plugin loader and routing and then simplify how the options are set and add options to specify output names/patterns/strategies.