Commit Graph

49 Commits

Author SHA1 Message Date
svennergr
22e45e9f88 Add proper error message on getUserInfo (#140277)
* Add proper error message on getUserInfo

* improved error message on getUserInfo

either display the response message or the http status text

Co-authored-by: Sven Grossmann <mail@grossmann.dev>
2022-01-10 11:35:20 -08:00
Tyler James Leonhardt
f67a8b753f Use device flow over PAT when we are running in a server full environment but not in a supported uri (#139255)
* initial attempt

* use github-authentication instead

* rework error handling

* update copy

* explain why Workspace
2021-12-15 22:07:49 -05:00
Joyce Er
b97ab80c18 Fix typo in PAT auth flow error message 2021-10-20 16:37:02 -07:00
João Moreno
a390f81744 no hack is better hack
Co-authored-by: Tyler <TylerLeonhardt@users.noreply.github.com>
2021-10-11 18:02:36 +02:00
Tyler Leonhardt
5364c56768 include insiders.vscode in nocors 2021-10-08 11:32:28 -07:00
Logan Ramos
420436d4c4 Fix #133493 2021-09-21 13:36:30 -04:00
Tyler Leonhardt
520fa49e68 refactor github auth to be a bit simpler. Remove PAT for GitHub auth since Settings Sync doesn't allow for it and add timeout so that GitHub Auth is not stuck. 2021-08-16 16:34:21 -07:00
Tyler Leonhardt
a8134002cd lazily load experimentation service in github-authentication 2021-07-23 09:07:41 -07:00
Tyler Leonhardt
6b6be7efe1 just return if the acceptedStates don't match fixes #126084 2021-06-28 17:12:06 -07:00
Tyler Leonhardt
4a011b5297 add additional logging around github auth 2021-06-28 16:27:52 -07:00
Kai Maetzel
c200dc4909 fix isNoCorsEnvironment (#126718) 2021-06-18 17:36:59 -07:00
João Moreno
0637663fcf fix isNoCorsEnvironment 2021-05-27 11:45:12 +02:00
João Moreno
25a12c75c5 use dummy uri 2021-05-19 20:40:07 +02:00
Benjamin Pasero
159479eb5a Allow to show status bar entries with an id and name (fix #74972) 2021-05-19 14:03:37 +02:00
Kevin Abel
4978a1891e Implement GitHub Enterprise authn provider (#115940) 2021-05-07 14:13:11 -07:00
João Moreno
87a33e998d disable edu telemetry on nocors 2021-04-27 16:03:57 +02:00
João Moreno
034157dea8 gh auth: back to prod auth 2021-04-21 15:00:24 +02:00
João Moreno
d60dbbf646 gh auth: fetch json 2021-04-21 10:48:01 +02:00
João Moreno
3668a573ad gh auth: fix staging server selection 2021-04-21 10:06:26 +02:00
João Moreno
7b23ff442e more staging detection (#121769)
* more staging detection

* check for scheme
2021-04-20 13:19:06 -07:00
João Moreno
ad3e7ea1c0 gh auth: look at staging query param (#121768) 2021-04-20 13:04:56 -07:00
Rachel Macfarlane
94589129a2 Add experimentation service to github auth extension 2021-04-20 09:25:01 -07:00
João Moreno
a09d640311 github auth: improve test env detection
cc @RMacfarlane
2021-04-14 08:59:55 +02:00
Rachel Macfarlane
5b5dd90655 Fix manually providing PAT for GitHub auth, fixes #118675 2021-03-10 14:48:33 -08:00
Rachel Macfarlane
6a6b9a5cc8 Possible fix for #115918 2021-02-22 15:44:38 -08:00
Rachel Macfarlane
78707e2d79 Fix #117098 2021-02-19 14:57:06 -08:00
Rachel Macfarlane
4e19a9f16a Update telemetry classification type for isEdu check 2021-02-17 11:36:29 -08:00
Rachel Macfarlane
2f277cb41e Add github session telemetry event 2021-02-12 15:39:04 -08:00
Rachel Macfarlane
4059ff428f Allow cancelling GitHub sign in, fixes #109101 2020-11-05 16:39:25 -08:00
Alex Ross
04863391e9 Fix scope checking mismatch (#109665) 2020-10-29 17:05:21 -07:00
Rachel Macfarlane
928e79f838 Verify GitHub tokens on auth provider start, fixes #108680 2020-10-26 16:01:58 -07:00
Rachel Macfarlane
102e0e6d84 Handle incomplete login requests gracefully, fixes #109102 2020-10-23 09:45:50 -07:00
Rachel Macfarlane
64d64c70ff Check token scopes for manually provided tokens 2020-10-06 16:16:57 -07:00
Rachel Macfarlane
1961260ef3 Update github token input prompt 2020-08-05 13:37:06 -07:00
Rachel Macfarlane
1ac2178ed0 Show input box for PAT in test environments instead of doing auth flow 2020-07-17 10:46:48 -07:00
Eric Amodio
774c4baa8f Adapts extension to work on the web/serverless 2020-06-08 18:13:26 -04:00
Rachel Macfarlane
d37370d89d Fix #96368 2020-06-01 10:11:06 -07:00
Rachel Macfarlane
4e15a24678 Support directly entering PAT for github auth as well as entering url 2020-06-01 09:49:13 -07:00
Rachel Macfarlane
a6c47beb1b Remove unused code in github auth provider 2020-05-27 09:37:54 -07:00
Rachel Macfarlane
11ec8269ed Pass correct host for VSO token 2020-04-28 15:17:22 -07:00
Rachel Macfarlane
a1a98d07da Fix github authentication in the web, fixes #96406 2020-04-28 14:00:41 -07:00
Rachel Macfarlane
b05b32bfd8 Use github auth server for provider 2020-04-27 08:10:46 -07:00
Rachel Macfarlane
badd41f04a Better error handling in github auth provider 2020-04-23 12:16:33 -07:00
Rachel Macfarlane
2e5312cd61 Add account id to authentication session object 2020-04-22 18:00:16 -07:00
Rachel Macfarlane
fd88fb9667 Await keychain write on logout for github auth 2020-04-21 11:16:45 -07:00
Rachel Macfarlane
7ca13ca33b Github auth provider - revoke token on logout 2020-03-28 08:15:30 -07:00
Rachel Macfarlane
d9d90a0d3d Use GitHub app for VSO, closes #92675 2020-03-23 07:52:22 -07:00
Rachel Macfarlane
bf0a32e729 Add support for other vscode environments for github auth 2020-02-24 11:14:11 -08:00
Rachel Macfarlane
eed39324b6 Add GitHub authentication provider extension, closes #90384 2020-02-20 10:56:16 -08:00