Code Monkey home page Code Monkey logo

Comments (4)

dazinator avatar dazinator commented on July 24, 2024

I managed to get this to work in the end (somewhat) but I needed to put an IntentFilter attribute above the android Activity class, for the ReturnUri stuff to correctly return to my app after login.

For example, if the return url was: appschema://myapp then you'd place this attribute above the activity:

 [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable }, DataScheme = "appschema", DataHost = "myapp")]
    [Activity(Label = "myapp", MainLauncher = true, Icon = "@drawable/icon")]
    public class LoginActivity : Activity
    {

You may want to update the sample with that.,.

from active-directory-dotnet-native-multitarget.

dstrockis avatar dstrockis commented on July 24, 2024

Thanks @dazinator... Sorry for your troubles. This has worked for me in the past without the intent filter, but I'll investigate and see if I can repro.

from active-directory-dotnet-native-multitarget.

btitular avatar btitular commented on July 24, 2024

I'm using the most recent library (3.3 alpha).

I was also having a problem with app returning from the authentication phase. It kept giving me an error that it could not resolve the web page. I then got a clue from:

https://stackoverflow.com/questions/30048166/adal-3-2-alpha-acquiretokenasync-ios-does-not-dismiss-sign-in-form?newreg=ef8573f754d54ff2a2bc0c6f9c4274c0

Afshin mentioned a possible case sensitive issue. Sure enough, as soon as I changed my redirect url to all lower case in the PCL, the program works as expected.

from active-directory-dotnet-native-multitarget.

jmprieur avatar jmprieur commented on July 24, 2024

Closing as the Stack overflow question was successfully answered

from active-directory-dotnet-native-multitarget.

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.