Allow auth URLs without a trailing slash

Issue: #2777
Merge pull request #2818 from achanda/master

Allow auth URLs without a trailing slash