Skip to content
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

Merged
merged 14 commits into from
Dec 2, 2024
Merged

Feature/SK-1202 | Added log-in functionality #759

merged 14 commits into from
Dec 2, 2024

Conversation

KatHellg
Copy link
Contributor

Added log-in functionality by saving access token to a context file.

@github-actions github-actions bot added minor feature New feature or request and removed minor labels Nov 25, 2024
from getpass import getpass

# Replace this with the platform's actual login endpoint
URL = "https://fedn.scaleoutsystems.com/api/token/"
Copy link
Contributor

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)")
Copy link
Contributor

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?

@Wrede Wrede merged commit 403f4c9 into master Dec 2, 2024
17 checks passed
@Wrede Wrede deleted the feature/SK-1202 branch December 2, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants