chromeOS - proxy authentication for chrome apps - Chromebooks

I am working on an extension where proxy is set through my extension using chrome extension proxy api(`chrome.proxy.settings`). Everything works fine and I get all traffic on my proxy server. Proxy authentication is handled using:
`chrome.webRequest.onAuthRequired.addListener(getProxyCredentials,
getAllFilter(), [ 'blocking' ]);`
`function getProxyCredentials(details) {
return details.isProxy === !0 ? {
authCredentials : {
username : localStorage.proxyUsername,
password : localStorage.proxyPassword
}
} : {}
}`
While using google chrome `407` is handled automatically. However, I am having trouble with **Chrome Apps**.
Everytime I open a chrome app, `407 Authentication Required` popup shows up and I have to manually enter credentials. This becomes a pain after a while.
Is there a way to automatically supply credentials to the **Chrome Apps**? Why does not ChromeOS honor the proxy and supply credentials since proxy is set and authentication is also done?
Anyone faced a similar problem? Should not chromeOS be providing proxy with credentials after `onAuthRequired` event is handled once?
Am I missing something here? Suggestions would be appreciated.

Related

[Q] Help! Yahoo mail sync bug?

Hey guys,
omni here with what should be a relatively easy question/fix...
There may be a post on this already, but I searched around for a good 10 minutes, and at least I know I'm in the right section (not spamming dev)
I have Yahoo! Mail liked through my MotoBlur Accounts so that it will show emails in my Universal Inbox (standard Messaging app). It works intermittently, and what is really strange is that when it ISN'T working (when it has the orange error/caution symbol over the syncing icon), the stored password under Accounts is randomly modified to a 20-ish character string (my password is much fewer characters). I can go back and change the password while its in the mood not to work, but it never seems to sync. Then I forget about it and it randomly connects later. As you can imagine, this gets quite annoying... I'm running GreyBlur 1.0 and SteelBlue 1.15 (compatible; the problem was happening long before layering this theme). I do move around campus alot, which switches to new wifi networks or to 3.5G.
So to sum up the question: how can I stop MotoBlur's Accounts/Yahoo! Mail from changing my password and losing connectivity (not sure which comes first/causes the other)?
Great thanks to this community's wonderful attitude and android wizardy!
-bump- (oh noes, its happened again!)
Bumpitty bump
Sent from my MB860 using XDA Premium App
Issue Summary
In order to improve security, Yahoo recently disabled non-secure (non-SSL) connections to their IMAP e-mail servers. As a result, customers with devices running the Android operating system may encounter errors when attempting to setup or access their Yahoo e-mail account via the device's native e-mail client.
Customers attempting to setup a Yahoo e-mail account for the first time will receive an authentication failed or similar error when using the automatic setup method (only e-mail address & password are entered).
Customers who previously setup a Yahoo e-mail account may receive an error or be unable to retrieve new e-mail messages.
Critical Must Know/Must Do
New users (or existing user attempting to add a new Yahoo/AT&T account): use the Manual Set up option to enter the required server settings.
Existing users: If their Yahoo/AT&T account stops syncing, direct them to Edit the account settings and enable SSL.
Server/Protocol - IMAP
IMAP/Incoming Server - imap.mail.yahoo.com
Security Type - SSL (or "secure connection" option)
Incoming Port - 993
Outgoing Server - smtp.mail.yahoo.com
Security Type - SSL (or "secure connection" option)
Outgoing Port - 465
To find out how to edit the settings go here:
https://www.wireless.att.com/answer-center/solutionDisplay.jsp?solutionId=KB116471
After following these instructions, hit the thanks button to show some love.
Thanks a hundred times over!

[Q] Android App Login Issue

Hi All,
Is it possible to make an android app with the following approach?
Create an app with login control (textfield and password field).
The App button is actually submitting to a web login to get a web auth session.
The server then returning a success or failure response and at the same time the server will create a auth session for this user logon.
Then the app switch to a WebView control to browse the member page which required the auth session from the login action previously.
Simply say, it is just like mobile version of website, performing login and browsing, but moved the login part into app, use WebView to keep browsing the rest.

[Q] LGOG: Problem signing in to "Email" app with Google Apps account

I have a Google Apps account through my school. Basically it's a [email protected] address that works as a google/gmail account.
I'm trying to set it up with IMAP in the default Email app. I'm following google's instructions, you can find them quoted below. So far no success. It works fine with my Nexus 7, so I guess this is a LGOG problem.The error I get is "wrong address or password"
I noticed a couple of differences between the N7 and LGOG setup screens.
LGOG: only 3 options for security type (Off, SSL, or TLS)
Nexus 7: 5 security type options (None, SSL/TLS, SSL/TLS(Accept all certificates), STARTTLS, STARTTLS(accept all certificates)
I used "SSL/TLS (Accept all certificates)" for my N7 and it worked great. Unfortunately LGOG doesn't have that option, so now I don't know what to do.
I can post screenshots if anyone wants to see them.
There was a similar problem with Exchange accounts in this thread.
http://forum.xda-developers.com/showthread.php?p=34812756
Google setup instructions:
http://support.google.com/mail/bin/static.py?hl=en&page=ts.cs&ts=1668960&from=75726&rd=1
Incoming Mail (IMAP) Server - Requires SSL
imap.gmail.com
Port: 993
Requires SSL:Yes
Outgoing Mail (SMTP) Server - Requires TLS
smtp.gmail.com
Port: 465 or 587
Requires SSL: Yes
Requires authentication: Yes
Use same settings as incoming mail server
Full Name or Display Name: [your name]
Account Name or User Name: your full Gmail address ([email protected]). Google Apps users, please enter [email protected]_domain.com
Email address: your full Gmail address ([email protected]) Google Apps users, please enter [email protected]_domain.com
Password: your Gmail password
Click to expand...
Click to collapse
Does the difference in the Email app settings come from LGOG vs Nexus 7? Or is it 4.04 vs 4.2?

[Q] Hotspot force redirect to Local Server

I got this crazy idea that I don't know is possible or not... what I want to do is set up my phone as wifi access point, then allow people to connect to it, but handle all incoming http traffic myself.
So:
Create a server (with KWS - Android web server)
client can connect to the phone
when client tries to open an http connection to any random server, this has to be intercepted by my app and handled by a local web server
Anyone knows any android app to do this ?
What you are talking about is a captive portal.
I made a simple app for this purpose. If you are a developer, I need your help to improve the app. For downloading the app and source code check this thread https://forum.xda-developers.com/android/general/guide-setup-fake-captive-portal-android-t4011689

Private DNS question

Hi,
I use the native Private DNS (DoT, DNS-over-TLS) on Android 9 for a while with my company DNS server. Private DNS (DoT or DoH) have no authentication option and the admins are running amok because the unwanted traffic from anywhere. The DNS should be the only DNS source for the devices outside the company and not a free service. DoT and DoH are faced by nginx for TLS termination and capable to make client certificate authentication (is now active on DoH). So the question:
Can I (and when - how) assign a client certificate to the native DoT client on android 9 (or following)?
Thanks

Categories

Resources