Coder Social home page Coder Social logo

Comments (13)

vmurin avatar vmurin commented on July 24, 2024 1

thanks for your feedback!

from react-native-azure-auth.

vmurin avatar vmurin commented on July 24, 2024

Please describe the problem more detailed. What are your actions, what do you see on the screen, what ist the expected behavior and what you get instead.

You may also find useful the issue #6

from react-native-azure-auth.

VadimCeretean avatar VadimCeretean commented on July 24, 2024

I set same redirect url in azure and in the app, but after login webview redirect to blank page and don't redirect to app

from react-native-azure-auth.

VadimCeretean avatar VadimCeretean commented on July 24, 2024

I press log in, enter to account and aftert browser show me blank page

from react-native-azure-auth.

vmurin avatar vmurin commented on July 24, 2024

Thank you for the input!
Following additional data needed to analyse the issue:

  1. What OS you are on?
  2. What is your call back URI registered in MS App Registration or Azure portal?
  3. In which section of registration portal you entered the callback URI? (Web or Desktop+devices or Native in the old portal UI)
  4. Attach your AndroidManifest.xml or iOS Info.plist

Best regards
V.

from react-native-azure-auth.

VadimCeretean avatar VadimCeretean commented on July 24, 2024
  1. Windows

  2. a) msal121b9b31-6df5-4560-857b-f2485ba13ba4://auth
    is return
    zs3ZlHDs

    b)https://login.microsoftonline.com/common/oauth2/nativeclient
    is return
    Screenshot_6

P9za2RY8
4.
Xv2wrKf9

Thank You for help!

from react-native-azure-auth.

vmurin avatar vmurin commented on July 24, 2024

Hey Vadim,

it seems one intent-filter in your manifest is missing.
Compare the example from readme with you file: https://github.com/vmurin/react-native-azure-auth#app-configuration

The data section with android:scheme should be in another filter (it has VIEW in it).
Try to correct the manifest and tell me if it works.

from react-native-azure-auth.

VadimCeretean avatar VadimCeretean commented on July 24, 2024

I correct my manifest, but it still not work
3tDqy2ru

from react-native-azure-auth.

VadimCeretean avatar VadimCeretean commented on July 24, 2024

Hi! i changed manifest like this and now it's work! Thank You!
38512247d1

from react-native-azure-auth.

vmurin avatar vmurin commented on July 24, 2024

Perfect! Good news.
I see you have used the generated URI from MS portal. It is a valid approach too.
Actually the only important thing is the correct spelling. You should have the same URI in the portal and manifest. In the previous variant without android:host key the key "android:prefix" is ignored, so every request with given scheme com.stenn would be redirect to the app. I suppose it was somewhere misspelled ... for example with extra space character or some Cyrillic character (e.g. c ???) in the manifest or portal.
Another consideration - may be you have some another app using the same scheme. In this case the additional data key android:host helps to identify the correct one.
So I'll now close the issue.
Good luck!

Relevant docs:
https://developer.android.com/training/app-links/deep-linking#adding-filters
https://developer.android.com/guide/topics/manifest/data-element

from react-native-azure-auth.

gustavohcastro avatar gustavohcastro commented on July 24, 2024

Hi,
I have the same problem in Android, iOS works fine, but it Android after a press continue or cancel both anything happens...
Someone can help me?

from react-native-azure-auth.

vmurin avatar vmurin commented on July 24, 2024

Hi Gustavo,
did you check/compare the spelling of the android:scheme in the android manifest and redirect URL in App registration - this is the only what could be wrong

from react-native-azure-auth.

gustavohcastro avatar gustavohcastro commented on July 24, 2024

Hi vmurin,

I found a solution, in azure portal when i put the signature hash, azure portal encode base64, so its different than I was put in AndroidManifest.xml

Thanks

from react-native-azure-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.