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

Allow out-of-tree plugins to expose urls #518

Open
knikolla opened this issue Apr 14, 2023 · 0 comments
Open

Allow out-of-tree plugins to expose urls #518

knikolla opened this issue Apr 14, 2023 · 0 comments

Comments

@knikolla
Copy link
Contributor

knikolla commented Apr 14, 2023

Currently /coldfront/config/urls.py allows some of the in-tree plugins to append to urlplatterns if they are enabled.

As a plugin writer, I would like to see that functionality exposed to out-of-tree plugins as well, without having to patch ColdFront.

knikolla added a commit to knikolla/coldfront-nerc that referenced this issue May 3, 2023
- Introduces patches/01_add_api_urls.patch which works around
  ubccr/coldfront#518 and is applied on
  container build.
- Introduces /api/allocations/ which returns a list of all
  Resource Allocations that are active. This API requires
  admin permissions to query (setting the staff flag after a first
  failed query)

Some notes:
- To authenticate to the API as a client, you must set `openid`
  as a default scope for the authenticating client and associate a
  mapper that maps `uid` to the User property `username`.
  You must also set the `email` field for the client user in
  Keycloak.

Closes nerc-project#84
knikolla added a commit to knikolla/coldfront-nerc that referenced this issue May 3, 2023
- Introduces patches/01_add_api_urls.patch which works around
  ubccr/coldfront#518 and is applied on
  container build.
- Introduces /api/allocations/ which returns a list of all
  Resource Allocations that are active. This API requires
  admin permissions to query (setting the staff flag after a first
  failed query)

Some notes:
- To authenticate to the API as a client, you must set `openid`
  as a default scope for the authenticating client and associate a
  mapper that maps `uid` to the User property `username`.
  You must also set the `email` field for the client user in
  Keycloak.

Closes nerc-project#84
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

1 participant