Commit Graph

29 Commits

Author SHA1 Message Date
montezdesousa
825b8955df Set guest by default and put authentication behind environment variable (#4197)
* small bug

* small bug on routines list

* guest as default

* limit logout to users2

* simpler this way

* add logout

* move logout to account & add env var

* put authentication under env var

* fix tests

* remove login

* remove openbb vars on login

* ruff

* revert .toml

* Delete Icon

* Update .env

* fix sdk guest not loading keys

* ruff

* remove press enter & --login

* ruff

* move env load

* load env

* move dot env loading to terminal.py

* fix user sdk login mixing .env with user

* now it works

* fix reset

* fix tests

* ruff

* Login on the SDK using the OpenBB Personal Access Token (#4206)

* openbb key on keys menu

* adding sdk endpoints

* adding login via token to the sdk

* base url

* rename to personal access token

* added docstrings and examples

* openbb is special

* removing extra break line

* making keys working with the personal access token

* resolve conflicting tests

* Revert "resolve conflicting tests"

This reverts commit 2fca2c0ec3.

* using custom requests

* tests

* tests

* tests

* using process_session_response instead

* rewriting some tests

* Fix sdk guest not loading keys (#4207)

* fix sdk guest not loading keys

* ruff

* remove comment

* tests

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* test record mode vcr none

* remove yes from tests yml

* specify modules to reload

* try disable check api

* UPdate spec file

* Small stocks bug

* avoid reloading in test mode

* will this work?

* skip session tests

* try with env var as well

* mock sdk reload

* pylint

* bump poetry on python 3.8

* adapt to python 3.8

* adapt to python 3.8 remaining tests

* Tests : update cassettes

* Fix linting

* Makes login conditions simpler

* Tests : txt

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-02-14 09:56:03 +00:00
Diogo Sousa
c39358eefd new msg 2023-02-09 16:53:19 +00:00
Diogo Sousa
c06c5c8b91 update msg 2023-02-09 16:51:21 +00:00
Diogo Sousa
40b95c40a9 ruff 2023-02-09 14:19:36 +00:00
Diogo Sousa
e568f7a60f change register link to dev 2023-02-09 14:08:41 +00:00
Diogo Sousa
11ee026f80 change prompt display 2023-02-09 10:49:21 +00:00
Diogo Sousa
759a2c7557 add guest if no email 2023-02-09 09:14:24 +00:00
hjoaquim
142cbb9638 Merge branch 'feature/login' of github.com:OpenBB-finance/OpenBBTerminal into feature/login 2023-02-06 11:10:42 +00:00
Diogo Sousa
c7342cd43d ruff 2023-02-05 19:29:48 +00:00
hjoaquim
2b00f5647c test for the user input 2023-02-03 17:28:33 +00:00
hjoaquim
4622e30ce8 tests for session_controller 2023-02-03 13:14:55 +00:00
Diogo Sousa
103133cbd4 remove colors in prompt 2023-02-01 09:59:15 +00:00
Diogo Sousa
0d22dc84a6 pylint 2023-01-31 13:51:59 +00:00
Diogo Sousa
873477991b add asteriscs to password 2023-01-31 13:50:11 +00:00
Diogo Sousa
fe94902a92 split login from lauch 2023-01-27 12:00:38 +00:00
Diogo Sousa
a2bdcd7f7b fix bug, guest allowed in installer without connection 2023-01-27 11:28:29 +00:00
Diogo Sousa
dbc7c09ee0 add sys clear 2023-01-26 21:05:56 +00:00
Diogo Sousa
da8031640f fix colors on installer prompt 2023-01-26 17:32:44 +00:00
Diogo Sousa
2795022140 or not and 2023-01-26 14:43:11 +00:00
Diogo Sousa
b8651cad1b block guest on installer 2023-01-26 14:40:10 +00:00
Diogo Sousa
9d39fd108b move create_session to model 2023-01-26 10:55:59 +00:00
Diogo Sousa
d3508e0385 this solves circular import? 2023-01-26 10:35:30 +00:00
Diogo Sousa
f9988d24e8 add ability to save and apply keys from remote 2023-01-25 19:16:49 +00:00
Diogo Sousa
5210adf829 move logout func 2023-01-25 17:58:48 +00:00
Diogo Sousa
f55d32b059 delete session model 2023-01-25 17:30:54 +00:00
Diogo Sousa
de47d49015 breaking changes: splitting guest from logged users 2023-01-25 16:49:34 +00:00
Diogo Sousa
c07e827ee2 clear sounds better 2023-01-25 12:39:40 +00:00
Diogo Sousa
ce9780e4af rename user 2023-01-25 12:35:23 +00:00
Diogo Sousa
8dae59477a account to session 2023-01-25 12:32:55 +00:00