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

Issuer returns a 500 error when Sitename contains a colon #106

Open
pjayme opened this issue Dec 12, 2022 · 3 comments
Open

Issuer returns a 500 error when Sitename contains a colon #106

pjayme opened this issue Dec 12, 2022 · 3 comments

Comments

@pjayme
Copy link

pjayme commented Dec 12, 2022

When a : is included as part of the Sitename in /admin/settings then we get a 500 error from the totp request with the Issuer class stating the error AssertInvalidArgumentException: Issuer must not contain a colon.

At a minimum, the docs should state that this should be avoided or if possible, the module should handle this scenario more gracefully.

@pjayme pjayme changed the title Issuer breaks when Sitename contains a colon Issuer returns a 500 error when Sitename contains a colon Dec 12, 2022
@GuySartorelli GuySartorelli added type/enhancement New feature or request complexity/medium impact/low and removed type/enhancement New feature or request labels Dec 13, 2022
@GuySartorelli
Copy link
Member

I'm on the fence as to whether the module should handle those cases by stripping out the colons, or if we should just document it in the readme. I'll mark as an enhancement for now.

@michalkleiner
Copy link
Contributor

Where is the name used or why does it matter?

@GuySartorelli
Copy link
Member

GuySartorelli commented Dec 13, 2022

The SiteConfig's Sitename is used as the "issuer", which is the name displayed in the authenticator app to identify the site. If it has a colon in it, the server error described occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants