cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-8201) Add support for auth dialogs into Cordova Android
Date Tue, 13 Jan 2015 19:28:35 GMT


ASF GitHub Bot commented on CB-8201:

Github user agrieve commented on a diff in the pull request:
    --- Diff: framework/src/org/apache/cordova/ ---
    @@ -147,6 +147,17 @@ public void setAuthenticationToken(AuthenticationToken authenticationToken,
    +     * Specifies the HTTP auth handler for handling auth challenge requests.
    +     *
    +     * @param handler The HTTP auth handler.
    +     */
    +    public void setHttpAuthRequestHandler(HttpAuthRequestHandler handler) {
    --- End diff --
    If there's no direct reason to add this to CordovaActivity, I'd prefer it not added. CordovaActivity
has a lot of symbols in it already, and they a little bit just add noise.

> Add support for auth dialogs into Cordova Android
> -------------------------------------------------
>                 Key: CB-8201
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>              Labels: android, authentication
> If you load some resource which requires authentication using android default browser
default login dialog appears, but if you try to load the same resource using cordova app then
no dialog is shown for user and request is failed w/ 401 Unauthorized. So Currently apps have
to provide own JS logic to show web based auth dialog.
> It will be great if Cordova Android offers special functionality (in core or via special
interface plugin developers can extend) to automatically show native auth dialog. This is
extremely useful in corpnet scenarios where all resources requires user to be authenticated.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message