-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/SK-1202 | Added log-in functionality #759
base: master
Are you sure you want to change the base?
Conversation
fedn/cli/login_cmd.py
Outdated
from getpass import getpass | ||
|
||
# Replace this with the platform's actual login endpoint | ||
URL = "https://fedn.scaleoutsystems.com/api/token/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool stuff! This one should be configurable by the user. Perhaps default to https://fedn.scaleoutsystems.com (and then concat the url programatically). This is because FEDn Studio can be hosted on different domains and we would like this to work on all instances.
except requests.exceptions.ConnectionError: | ||
click.echo(f"Error: Could not connect to {url}") | ||
|
||
@click.option("-p", "--protocol", required=False, default=CONTROLLER_DEFAULTS["protocol"], help="Communication protocol of controller (api)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes in this pr?
a80c2c8
to
b310ce6
Compare
b310ce6
to
c9bacbe
Compare
Added log-in functionality by saving access token to a context file.