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

[UC] Server Side authentication and Data Access #39

Open
jeswr opened this issue Dec 15, 2024 · 1 comment
Open

[UC] Server Side authentication and Data Access #39

jeswr opened this issue Dec 15, 2024 · 1 comment
Labels
triage Issues needing triage usecase LWS Use Case

Comments

@jeswr
Copy link
Member

jeswr commented Dec 15, 2024

As a researcher running a Python script on a remote server (headless application or service),
I want the script to be able to authenticate using some credentials provided to it,
So that it can fetch private data shared with my research group, to be used as training data for our research study.

Preconditions:

What conditions must be in place or assumed before this use case can begin?

  • I have created an identifier for the researcher, script, or research study.
  • I have obtained keys/credentials that I can provide to the script for authentication.

Trigger:

What (user or system) event or action initiates this use case?

  • Researcher executing the Python script on a remote server

Actors:

Describe the primary actor, and any other relevant actors involved in this use case

  • Researcher running the ML pipeline
  • Data Subjects for the research

Distinction:

What unique challenges or distinguishing factors (like technical issues, user experience needs, workflow integration, etc.) are associated with this use case?

  • This use case requires a standard mechanism for scripts to authenticate (e.g. using client credentials). Whilst most Solid Server implementations have such a mechanism, this is not standardized in the Solid CG specification.
  • This use case (possibly) requires non-human entities (a script, or research study) to have an identifier authenticate.

Scenario:

Describe an ideal or happy-case scenario where this use case would play out as intended.

  • The researcher collects authentication credentials and adds them to a .env file on the remote server. Once the script is started, no further input is required from the researcher.

Alternative case(s):

What alternative flows or variations should the system handle for this use case?

  • The user must run the script locally and have a browser open to authenticate the researcher, or write custom code to have Playwright running headless on the remote server to enter a username / password to authenticate the user.

Error scenario:

What unexpected issues or errors might arise, and how should the system handle them?

  • Invalid or no credentials provided, the server should respond with a 401 status code

Acceptance Criteria:

What conditions or criteria must be met for this use case to be considered successfully handled? What limitations are acceptable?

  • Headless clients can authenticate without any dynamic interaction with users.

References:

List any relevant resources or examples that could inform this use case, possibly from other domains or solutions.

@jeswr jeswr added triage Issues needing triage usecase LWS Use Case labels Dec 15, 2024
@hzbarcea
Copy link
Contributor

This is also related to the agents line of use cases. Very good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues needing triage usecase LWS Use Case
Projects
None yet
Development

No branches or pull requests

2 participants