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

The reply URL specified does not match #94

Closed
ivanmalo opened this issue Jul 8, 2020 · 1 comment
Closed

The reply URL specified does not match #94

ivanmalo opened this issue Jul 8, 2020 · 1 comment

Comments

@ivanmalo
Copy link

ivanmalo commented Jul 8, 2020

Hi,

We followed the instructions, but we seem to be missing something in the configuration. When we try to login, we get error AADSTS50011. I attach the screenshots for my Azure config and my manifest. It all seems fine and we've doube checked with other issues, but still no luck. I even set up an extra URL on the Azure config to try and see if I was missing something.

Screenshot_20200707-223954_Chrome
image-1
image

@vmurin
Copy link
Owner

vmurin commented Jul 9, 2020

Hi Ivan,

the redirect URl is the one used in authorization call. The library has default URL scheme look here

In your case you have registered some another URL with the scheme

{YOUR_APP_PACKAGE_NAME}://auth/android/callback

It is totally different from provided in README and used in library by default and besides this the package name com.stetamalo.com does not correspond with one from manifest - com.stetamalo.vinte

What you can do:

  1. either register URL in the app registration with the scheme from README - it would be com.stetamalo.vinte://com.stetamalo.vinte/android/callback in your case.
    Also fix the manifest like this:
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data
        android:pathPrefix="/android/callback"
        android:host="com.stetamalo.vinte"
        android:scheme="com.stetamalo.vinte" />
</intent-filter>
  1. or you can use your custom callback URL. Just provide it as parameter in the class initialization:
const azureAuth = new AzureAuth({
    clientId: 'YOUR_CLIENT_ID',
    redirectUri: 'com.stetamalo.com://auth/android/callback'
});

See docs

Feel free to reopen the issue if this will not help

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

No branches or pull requests

2 participants