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

Add User Authentication #15

Open
1 task
smohiudd opened this issue Jul 4, 2024 · 4 comments
Open
1 task

Add User Authentication #15

smohiudd opened this issue Jul 4, 2024 · 4 comments

Comments

@smohiudd
Copy link
Member

smohiudd commented Jul 4, 2024

Description

The UI will need user authentication to allow only certain users to access and edit the STAC catalog.
The VEDA project is implementing veda-auth-central which uses OAuth 2.0 via KeyCloak. A user will need to log in using SSO before editing metadata. Tokens would need to be passed to the STAC API so transactions can be executed.

PI Objective

Objective DS-2: STAC Admin NASA-IMPACT/veda-architecture#454

Acceptance Criteria

  • SSO is integrated into STAC admin so users can authenticated before editing the STAC catalog
@m-mohr
Copy link

m-mohr commented Dec 15, 2024

I'd like to hear your input on this issue, it also seems relevant for STAC Manager, I assume:
stac-api-extensions/transaction#15

@j08lue j08lue added this to the MVP milestone Feb 25, 2025
@j08lue
Copy link
Member

j08lue commented Feb 25, 2025

For convenience: These are the endpoint + http method combinations that will require auth:

Image

The same endpoints are probably in many cases open for anonymous GET requests, but other methods require auth.

There will be cases, though, where also other methods and GET requests require auth, for example when some collections are access restricted or the whole STAC API is. If we want to use STAC Manager for these cases, we will need to figure out how to support those cases in terms of auth. TBD.

@j08lue
Copy link
Member

j08lue commented Mar 4, 2025

@danielfdsilva, looks like we already have all the information about the auth flow we need to implement for EOEPCA, which I expect will be the same thing for VEDA:

EOEPCA/resource-discovery#128 (comment)

So I guess we will need a few things to be configurable in the app, such as the client ID, URL to the login service, etc. Are you able to derive these from the details on the above ticket?

To test things out, we will need to deploy our app in the EOEPCA cluster, as mentioned.

Maybe we can already prepare the app for the auth flow now?

@j08lue
Copy link
Member

j08lue commented Mar 17, 2025

The goal is to make the app a client for the Authorization Code Flow with PKCE. It will in our projects be used against KeyCloak, but the flow and its logic should be identical between OAuth2 providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants