Monday, 15 September 2014

authentication - Logout of Github using javascript -



authentication - Logout of Github using javascript -

i'm working on chrome extension have current user logged in github. in order switch users, want have log out button in extension logs current user out.

i've tried

chrome.windows.create({'url':'https://github.com/logout'})

which takes me github logout page there still confirmation user have click on logout. able log user out in background or @ minimum, without them having click on additional confirmation.

any thoughts?

you can check if 1 of 2 techniques mentioned here works you:

"how automatically click confirm box?": overriding window.confirm function "auto click javascript confirm dialog": inserting dummy function showconfirm() @ top of header of browser.document overwrites/suppress original function showconfirm().

even if names of methods differ in github confirmation page, thought remains: if can somehow override/silence confirmation method, can skip past step.

javascript authentication github google-chrome-extension

No comments:

Post a Comment