Allow auth URLs without a trailing slash

Issue: #2777