Lordnibbler / auth.js secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View auth.js
1 2 3 4 5 6 7 8 9
chrome.webRequest.onAuthRequired.addListener(function(details, callback) {
if (details.url.match(basic_auth_url)) {
callback({"authCredentials":{"username":basic_auth_username,"password":basic_auth_password}});
chrome.tabs.update(basic_auth_tab_id, {url: basic_auth_redirect_url});
} else {
callback();
}
 
}, {"urls":["http://*/*", "https://*/*"]},["asyncBlocking"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.