auth0 / Guardian.Android

Android toolkit for Auth0 Guardian API
https://auth0.com/guardian
MIT License
5 stars 18 forks source link

[MFA-352] Fix url path to append enrollment path for psaas customers #91

Closed TSLarson closed 4 years ago

TSLarson commented 4 years ago

Description

Guardian Android App does not work in PSaaS environment.

In the PSaaS environment, the MFA login url end is https://{{baseURL}}.com/appliance-mfa. When redirecting to mfa-api, the path /api-enroll should be appended to the above url. This was not happening. Instead, /api-enroll was replacing /appliance-mfa This PR changes the way we append paths from using .resolve to .addPathSegments

References

https://auth0team.atlassian.net/browse/MFA-352

Testing

This can be tested by running the GuardianApp.Android application and importing this branch instead of: implementation "com.auth0.android:guardian:0.3.0" in the build.gradle

Checklist