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

App not redirected after authentication from microsoft. #346

Open
Deepakraj2022 opened this issue Oct 28, 2024 · 1 comment
Open

App not redirected after authentication from microsoft. #346

Deepakraj2022 opened this issue Oct 28, 2024 · 1 comment

Comments

@Deepakraj2022
Copy link

Hi I am trying to login with microsoft login. Once the login is success, then it is not redirected to App.

Media
Below is my androidManifext file
`







    </activity>
   <activity
        android:name="com.linusu.flutter_web_auth.CallbackActivity"
        android:exported="true"
        android:launchMode="singleTask">
        <intent-filter android:label="auth">
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data
                android:scheme="com.example.newlogin"
                android:host="MG2SCfaXfIy27F04sIf6U9gahV8="
               />
        </intent-filter>
    </activity>
    <!-- Don't delete the meta-data below.
         This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
     https://developer.android.com/training/package-visibility?hl=en and
     https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

     In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
    <intent>
        <action android:name="android.intent.action.PROCESS_TEXT"/>
        <data android:mimeType="text/plain"/>
    </intent>
</queries>
`

below is my configuration in azure portal
image

image

Can anyone help me what mistake I made

@justoke
Copy link

justoke commented Oct 28, 2024

I use the Azure B2C platform and have an app registration similar to yours. I would suggest you use the returnURL defined in your app registration as shown below:
image

The return URL should be accessible, I don't see how the login server which is public can redirect to a scheme defined on your host device. I'd remove that from your app registration and check the boxes on the two defined return URLS. From the Overview section of the app registration you can get all the settings you need. Here is a screenshot of my setup for the aad_oauth:
image

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