Commit Graph

37 Commits

Author SHA1 Message Date
Paulo Castro
5464e550e7 chore: lib/auth/utils.ts: Replace deprecated url.resolve, use async/await
Change-type: patch
2022-01-19 22:48:46 +00:00
Paulo Castro
09d004423c Bump 'balena-lint' and fix 'no-floating-promises' warnings
Change-type: patch
2021-11-26 15:59:33 +00:00
Paulo Castro
cfd790a193 Update 'devDependencies' in package.json
Change-type: patch
2021-07-09 21:34:09 +01:00
Paulo Castro
478b5dd363 Revert styling of "balena CLI" as "balenaCLI"
Change-type: patch
2020-10-21 00:07:46 +01:00
Paulo Castro
b1897a512d Style "balena CLI" as "balenaCLI" and "balena cloud" as "balenaCloud"
Change-type: patch
2020-09-18 23:27:24 +01:00
Pagan Gazzard
e021ad9af6 Update balena-sdk to 15.x
Update balena-config-json from 4.0.0 to 4.1.0
Update balena-image-manager from 7.0.1 to 7.0.3
Update balena-preload from 10.2.0 to 10.2.4
Update balena-sdk from 14.8.0 to 15.2.1
Update balena-sync from 11.0.0 to 11.0.2

Change-type: patch
2020-08-11 17:53:33 +01:00
Paulo Castro
cf894d98a5 login: Use any free port number instead of 8989 for web authentication
Change-type: minor
2020-08-03 20:26:10 +01:00
Pagan Gazzard
9aacb7ec56 Remove some bluebird usage
Change-type: patch
2020-07-31 10:33:51 +00:00
Pagan Gazzard
303c3af061 Switch from Bluebird.join to native version
Change-type: patch
2020-06-30 23:59:18 +01:00
Pagan Gazzard
984d1a3fd6 Switch from new Bluebird to native version
Change-type: patch
2020-06-30 23:59:17 +01:00
Scott Lowe
1308b64c67 Recategorize some errors as expected.
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-26 13:57:39 +02:00
Pagan Gazzard
03eed32f12 Simplify some exports
Change-type: patch
2020-06-24 15:23:53 +00:00
Pagan Gazzard
6dce5c1212 Use import type where possible to explicitly import only type info
Change-type: patch
2020-06-24 13:46:27 +00:00
Pagan Gazzard
420a282bea Standardize all references to Bluebird
Change-type: patch
2020-06-24 12:38:09 +00:00
Paulo Castro
c619bd4b99 Update 'balena-lint' and apply new prettier rules
Change-type: patch
2020-06-15 23:53:07 +01:00
Paulo Castro
3bb5e495a6 Fix 'balena login' web authorization hanging with Google Chrome
Resolves: #1404
Change-type: patch
2020-05-16 23:32:07 +01:00
Paulo Castro
803a9070fd Update web page wording for 'balena login' web authorization
Resolves: #1710
Change-type: patch
2020-05-16 00:01:09 +01:00
Pagan Gazzard
eac6bb5e5c Simplify lazy-loading of balena-sdk by utilizing a shared function
This also avoids instantiating multiple balena-sdk

Change-type: patch
2020-02-27 17:17:36 +00:00
Pagan Gazzard
2b04763ac0 Convert lib/auth/index to typescript
Change-type: patch
2020-02-12 13:20:36 +00:00
Pagan Gazzard
93ba5832d8 Convert lib/auth/server to typescript
Change-type: patch
2020-02-12 12:10:12 +00:00
Pagan Gazzard
4de41ce3e0 Convert lib/auth/utils to typescript
Change-type: patch
2020-02-10 13:42:50 +00:00
Pagan Gazzard
3f84045127 Switch from opn to its new name of open
Change-type: patch
2020-02-06 19:55:22 +00:00
Tim Perry
4907fccf48 Rename everything from 'resin' to 'balena'
Change-type: major
2018-10-29 22:29:02 +01:00
Tim Perry
ce64889b04 Clarify isTokenValid logic 2018-03-29 11:11:25 +02:00
Tim Perry
12a1916007 Allow (experimental!) login with API keys
Change-Type: minor
2018-03-29 11:11:25 +02:00
Alexis Svinartchouk
163684e3a9
Update dashboard login to use the multicontainer SDK
Change-Type: patch
2018-03-07 14:46:35 +00:00
Tim Perry
d8aabfd448
Ensure login does not wait for the browser process to close
Unclear why, but for some reason this only actually blocked on the
browser on OSX.

Connects-To: #791
Change-Type: patch
2018-02-16 17:28:19 +01:00
Tim Perry
dba8db19cb Move from open to opn
Change-Type: patch
2017-12-18 14:55:07 +01:00
Tim Perry
001c8f9601 Inline the entire resin-cli-auth module
This is part of a general push to demodularize any code that isn't
realistically reusable outside resin-cli, to make the codebase easier to
manage and understand. Once this is done, we'll deprecate the original
module itself.

Change-Type: patch
2017-11-27 12:02:57 +02:00
Juan Cruz Viotti
ff07764b39 Move auth to resin module 2014-11-26 13:02:22 -04:00
Juan Cruz Viotti
64cb1520f6 Move data to resin module 2014-11-26 12:56:52 -04:00
Juan Cruz Viotti
1736d8a759 Move token to resin module 2014-11-26 12:42:10 -04:00
Juan Cruz Viotti
698ddd168c Move server to resin module 2014-11-26 12:07:10 -04:00
Juan Cruz Viotti
a6099b227b Require internet connection before attempting to use server module 2014-11-25 09:02:50 -04:00
Juan Cruz Viotti
53c25412c3 Make auth.parseCredentials async 2014-11-18 12:11:20 -04:00
Juan Cruz Viotti
2fd2b702ae Rename config.baseUrl to config.remoteUrl 2014-11-18 08:53:07 -04:00
Juan Cruz Viotti
c753e1b41b Move auth outside of cli-modules 2014-11-18 08:34:40 -04:00