Skip to content

Commit

Permalink
Improve regex for personal projects (#135)
Browse files Browse the repository at this point in the history
* Improve regex for personal projects

* Improve regex
  • Loading branch information
enolfc authored Sep 23, 2024
1 parent 857a93e commit 726e85d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion egi_notebooks_hub/egiauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,15 @@ class EOSCNodeAuthenticator(EGICheckinAuthenticator):

login_service = "EOSC AAI"

# Namespaces used in the EOSC EU Node:
# Testing: urn:geant:eosc-federation.eu
# Staging: urn:geant:eosc-federation.eu
# Production: urn:geant:open-science-cloud.ec.europa.eu
#
# Personal projects are in the form:
# <urn-namespace>:group:pp-0190356a-ac97-db53-21c0-df7cd31a47c4
personal_project_re = Unicode(
r"^urn:geant:eosc-federation.eu:group:(pp-.*)$",
r"^urn:geant:[^:]+:group:(pp-.*)$",
config=True,
help="""Regular expression to match the personal groups.
If the regular expression contains a group and matches, it will be
Expand Down

0 comments on commit 726e85d

Please sign in to comment.