-
Notifications
You must be signed in to change notification settings - Fork 215
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
generateUrl() in BaseAuth0 is creating bad URLs #1
Comments
Thanks Scott! The fix is available @ v0.6.5: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I make the following call for creating a User URL
it returns
https://company.auth0.com/apiusers
The problem seems to be the '/' removing part of this function
There's two easy ways to fix this issue:
if ($path[0] ==='/') {...etc
lines from the function OR$URL_MAP
add a '/' character to the end of each url. So turnpublic static $URL_MAP = array( 'api' => 'https://{domain}/api', 'authorize' => 'https://{domain}/authorize', 'token' => 'https://{domain}/oauth/token', 'user_info' => 'https://{domain}/userinfo', );
into
public static $URL_MAP = array( 'api' => 'https://{domain}/api/', 'authorize' => 'https://{domain}/authorize/', 'token' => 'https://{domain}/oauth/token/', 'user_info' => 'https://{domain}/userinfo/', );
The text was updated successfully, but these errors were encountered: