Skip to content

session: add api to clear http auth cache - #8107

Merged
kevinsawicki merged 6 commits into
electron:masterfrom
deepak1556:clear_auth_cache_patch
Dec 9, 2016
Merged

kevinsawicki merged 6 commits into
electron:masterfrom
deepak1556:clear_auth_cache_patch

Conversation

@deepak1556

Copy link
Copy Markdown
Member

Fixes #8089

};

template<>
template <>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor, but looks like most other templates don't have a space before the <>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format returns template <> instead of template<> . But we do have both versions in the source. Not sure what to follow. I would prefer the former, since I mostly run git-clang-format.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay, good to know, either is fine with me 👍

Comment thread spec/api-session-spec.js
})

describe('ses.clearAuthCache(options[, callback])', function () {
it('can clear http auth info from cache', function (done) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible to test the clientCertificate path as well?

Comment thread atom/browser/api/atom_api_session.cc Outdated

void Session::ClearAuthCache(mate::Arguments* args) {
ClearAuthCacheOptions options;
args->GetNext(&options);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this throw an error on failure? Looks like from the initial doc the options aren't optional.

@kevinsawicki kevinsawicki self-assigned this Dec 6, 2016
@kevinsawicki
kevinsawicki force-pushed the clear_auth_cache_patch branch from 85f9f67 to 4085ba3 Compare December 9, 2016 17:56
@kevinsawicki

Copy link
Copy Markdown
Contributor

Thanks for this @deepak1556, rebased this 👍 :shipit:

@kevinsawicki
kevinsawicki merged commit dc5b270 into electron:master Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants