Basic Authentication

Welcome! Forums Unity Plugins In-App Web Browser Basic Authentication

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #655
    jensemil
    Participant

    Hey,

    I am planning to buy the In-App Web Browser.
    But I need it to support basic authentication. Does it support it?
    (Preferably, an implementation where the developer can just enter credentials into the code and does not have to prompt the user to do so).

    On iOS, the URL requests need an implementation of a few callbacks:
    https://stackoverflow.com/questions/1769888/how-to-display-the-authentication-challenge-in-uiwebview

    Best regards,
    JE

    #677
    PiotrPiotr
    Keymaster

    Yes 🙂

    #752
    jensemil
    Participant

    Ok, nice 🙂
    However, it does not seem to work out of the box though.
    I downloaded the plugin, and tried to open a URL with basic authentication.
    I am testing on Android, and I get a “401 Unauthorized” error.
    I can also see that the URLSession:didReceiveChallenge:completionHandler: delegate method is not implemented in the iOS version.

    Do you have some additional code that did not come with the package at the Asset store, or how does the plugin support it?

    #787
    PiotrPiotr
    Keymaster

    Hi @jensemil, I’m terrible sorry but for some reason I thought you asked about something else. Is it something you could implement by yourself? I could send you Android sources as well.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.