Commit Graph

40 Commits

Author SHA1 Message Date
Will Duff 5919cd1b31 Implement OAuth token re-authorization
Override the BlogClientBase.Login method with an OAuth2 login flow.
2015-12-14 20:29:11 -08:00
Will Duff 436f2a121b Add Google Blogger v3 Client
The Google Blogger v3 API doesn't use the Atom protocol, so I added a
new Google Blogger v3 client to handle the connection instead. I updated
the Google Blogger detector to use the new OAuth APIs when attempting to
detect a Google Blogger blog. I also had to change some logic around for
homepage URLs. The main difference in the Google Blogger flow is that
the homepage URL isn't known until after the credentials are authorized.
All other blogs require the user to type in the homepage URL manually
before authorization happens, so I had to change some logic for this to
work properly.
2015-12-14 01:08:58 -08:00
Will Duff 5fbc9ab8c0 Improve Google Blogger authentication flow
The 'Sign in' button now automatically disables itself and changes text
dynamically to help make sure users know when they need to click it,
made the authentication panel automatically click the 'Next' button on
behalf of the user when it detects valid user credentials. I also
changed the FileDataStore to store one OAuth2 token per blog rather than
create a new folder per blog.
2015-12-13 19:55:58 -08:00
Will Duff d1fe288290 Change Google Blogger credential storage to use explicit FileDataStore
Most blog APIs take a simple username/password pair and our
IBlogCredentials are based around this concept. For OAuth, there is more
to store than just a simple username/password. The Google APIs already
provide an option to automatically handle the data storage for the
OAuth, so I'm using that instead.
2015-12-13 14:57:23 -08:00
Will Duff 3796993b2c Move Blogger client ID and client secrets to JSON
Google asked us not to check in the client id and client secret into the
source. Instead, we'll generate a client_secrets.json at runtime based
on environment variables. Developers that want to build the source code
locally will need to supply their own client ID and client secret. For
the official Open Live Writer installer, we'll make sure the client ID
and client secret are set to the official Open Live Writer client.
2015-12-13 13:21:36 -08:00
Will Duff ad482780be Add Google Blogger configuration wizard panel
Adds a new radio button to specify a Google Blogger blog and a follow up
panel to prompt users to open the Google Blogger OAuth flow.
2015-12-12 02:38:43 -08:00
Will Duff bd34aecf68 Merge branch 'master' into google-blogger 2015-12-12 02:23:30 -08:00
Will Duff 8ba118a2f0 Merge branch 'OpenLiveWriter/master' 2015-12-12 02:20:37 -08:00
Will Duff 90d5f5e226 Add NuGet dependency on Google.Apis.Blogger.v3 2015-12-11 17:28:47 -08:00
Martin Woodward 6e4d928109 Merge branch 'softwarenerd-master' 2015-12-10 19:07:06 +00:00
Martin Woodward c80bee8119 Don't call Brian 2015-12-10 19:06:07 +00:00
Will Duff 488d6e8e62 Merge pull request #76 from martinwoodward/add-packages-to-about-form
Add NuGet Packages into AboutForm
2015-12-10 10:55:53 -08:00
Martin Woodward 3e96fe5153 Add NuGet Packages into AboutForm 2015-12-10 18:49:12 +00:00
Will Duff 5ae202b184 Merge pull request #41 from timsneath/postinstall-fix
Be more tolerant of dev workstation environment
2015-12-10 09:42:27 -08:00
Martin Woodward aae9adf451 Merge pull request #64 from hmemcpy/patch-1
Adding VC.opendb to ignore file
2015-12-10 11:00:34 +00:00
Martin Woodward b4a419b787 Merge pull request #62 from jcheng5/patch-1
Jeremy wasn't involved
2015-12-10 10:57:37 +00:00
Igal Tabachnik ea25f6ad44 Adding VC.opendb to ignore file 2015-12-10 10:03:27 +02:00
Joe Cheng 0dbf6d5f04 Jeremy wasn't involved 2015-12-09 23:32:59 -08:00
Will Duff 3a47e39dac Merge pull request #53 from KirillOsenkov/tabsspaces
Replace tabs with spaces and fix more of remaining whitespace issues.
2015-12-09 21:29:46 -08:00
Brian Lambert 1236b0393f Removing my name and some spelling errors. Nothing substantial. 2015-12-09 23:10:55 -05:00
Kirill Osenkov 1b898bd57e Merge branch 'master' into tabsspaces 2015-12-09 17:11:10 -08:00
Will Duff 6f6426e5e8 Merge pull request #52 from timheuer/master
Fix #49 - Fix permissions argument for LiveJournal API
2015-12-09 17:06:59 -08:00
Kirill Osenkov ed4b8936c0 Replace tabs with spaces and fix more of remaining whitespace issues. 2015-12-09 17:06:57 -08:00
Will Duff 2e58e16808 Merge pull request #51 from KirillOsenkov/master
Remove trailing whitespace and consecutive empty lines.
2015-12-09 16:45:57 -08:00
Tim Heuer 9639e2fb7e Fix #49 as LiveJournal API returning invalid arg for "0" value on Gallery security setting. Changed to 255 (public) per documentation 2015-12-09 16:09:36 -08:00
Will Duff e0c644ead4 Merge remote-tracking branch 'refs/remotes/OpenLiveWriter/master' 2015-12-09 16:01:36 -08:00
Kirill Osenkov 0fa127828a Remove trailing whitespace and consecutive empty lines. 2015-12-09 15:59:31 -08:00
Will Duff 0664d477e9 Merge pull request #48 from KirillOsenkov/master
Formatting all source files
2015-12-09 15:09:44 -08:00
Kirill Osenkov c232dc943f Formatting all source files 2015-12-09 14:17:51 -08:00
Rob Dolin (MSFT) a02dd49c54 Merge pull request #47 from rahulpnath/patch-1
Fixed Spelling
2015-12-09 14:06:48 -08:00
Rahul P Nath 38ea607008 Fixed Spelling 2015-12-10 08:59:49 +11:00
Tim Sneath 38ac21a66f Be more tolerant of dev workstation environment
Fix postinstaller to be more tolerant: (i) Use quote marks to ensure spaces in the user profile directory (e.g. C:\Users\Tim Sneath) don't break the batch file; (ii) fail more gently if Nuget.exe isn't in the %localappdata% directory, since it's not installed by default with Visual Studio.
2015-12-09 13:00:44 -08:00
Martin Woodward edb768447b Merge pull request #36 from martingbrown/patch-1
Fix type in roadmap.md
2015-12-09 20:16:06 +00:00
Martin Brown 8ebf2052e7 Update roadmap.md
Fixed a tiny typo
2015-12-09 19:45:59 +00:00
Will Duff ef08ab9367 Merge pull request #21 from willduff/issue18
Issue #18 - Fix link to license in NUSPEC files
2015-12-09 09:49:00 -08:00
Will Duff 99df1a7ebc Fix link to license in NUSPEC files 2015-12-09 09:40:55 -08:00
Martin Woodward 0e7552d773 Merge pull request #1 from ScottIsAFool/FixNuspecVersion
Fix version number in nuspec
2015-12-09 11:24:54 +00:00
Scott Lovegrove 74bcbb8cf8 Fix version number in nuspec
Also add license url and icon url
2015-12-09 11:12:46 +00:00
Martin Woodward 88af53f4ad Add AppVeyor badge for builds 2015-12-09 10:49:09 +00:00
Will Duff 00ec9e80e0 Initial commit 2015-12-09 02:38:46 -08:00