Commit Graph

27 Commits

Author SHA1 Message Date
Simon Ser 4ede51e2b0
protonmail: fix "invalid refresh token" errors
The UID is now provided as a header field.

Closes: https://github.com/emersion/hydroxide/issues/81
2020-03-07 18:09:50 +01:00
Simon Ser 897ec17f53
go fmt 2019-12-09 12:27:16 +01:00
Simon Ser 80e0fa6f3e
Fix 2FA support
The 2FA information is now returned after the /auth request instead of
the /auth/info one.

Closes: https://github.com/emersion/hydroxide/issues/76
2019-12-08 12:14:41 +01:00
Simon Ser db983eed89
protonmail: fix "invalid input" error on /auth/refresh
It seems like we were just missing a valid RedirectURI.

References: https://github.com/emersion/hydroxide/issues/70
2019-11-14 09:12:34 +01:00
Simon Ser cc03e059b9
Save key salts after auth
The key salts endpoint can only be accessed right after authentication, it's
blocked after auth refresh.

Closes: https://github.com/emersion/hydroxide/issues/68
2019-08-31 17:43:49 +03:00
Simon Ser 75984c4ff4
protonmail: fix /auth/refresh, remove Client{ID,Secret}
ClientID and ClientSecret are no longer used.

Closes: https://github.com/emersion/hydroxide/issues/68
2019-08-31 16:19:54 +03:00
Simon Ser 41b720f09f
protonmail: AccessToken isn't encrypted anymore
Closes: https://github.com/emersion/hydroxide/issues/67
2019-08-14 23:01:39 +03:00
Simon Ser fef10d24fd
protonmail: update AuthInfo struct 2019-08-14 22:33:31 +03:00
Simon Ser ba96d886d8
protonmail: skip keys we can't read
Updates https://github.com/emersion/hydroxide/issues/46
2019-04-14 21:10:06 +03:00
Simon Ser fc1618d086
protonmail: improve errors 2019-04-14 19:07:03 +03:00
Simon Ser 139f3921e7
protonmail: make auth errors more verbose 2019-04-13 14:03:12 +03:00
emersion ee861e4175
Make it clear that failing to unlock a key isn't fatal 2018-11-24 16:51:23 +01:00
emersion 0b3c3ddde5
Address review comments 2018-10-28 16:52:57 +01:00
Brandon McDonnell 7b92deb6ac
protonmail: Do not duplicate primary account key in keyring.
Probably not worth the extra overhead the way I did it, but neater.
2018-10-28 16:19:30 +01:00
Brandon McDonnell c610c633a8
protonmail: Fetch and decrypt all account keys. 2018-10-28 16:19:26 +01:00
emersion 9c60924294
protonmail: always hash private key passphrase, fixes #25 2018-01-29 21:13:03 +01:00
emersion 937242e3ef
Add PoC CardDAV server 2017-09-03 20:11:01 +02:00
emersion 1978c7ced0
Add more contacts API endpoints 2017-08-22 13:22:27 +02:00
emersion 4785888590
Change Client.AuthRefresh to take an Auth 2017-08-22 12:23:58 +02:00
emersion a6f6f5f8e2
Fix Client.AuthRefresh 2017-08-22 12:07:31 +02:00
emersion 8baa4a62f6
Add Client.Logout 2017-08-22 11:19:21 +02:00
emersion 898c3ce3de
Add Client.AuthRefresh 2017-08-22 10:51:48 +02:00
emersion 959603b0d9
Add Client.Unlock 2017-08-22 10:36:43 +02:00
emersion d964a951a0
go fmt 2017-08-22 10:16:20 +02:00
emersion 653a8a0dc0
Add Auth, add computeKeyPassword 2017-08-22 09:41:47 +02:00
emersion 24aec2c52a
Add AuthInfoResp.authInfo 2017-08-22 09:21:50 +02:00
emersion dac767c4bf
Add authentication support 2017-08-22 00:04:16 +02:00