Skip to content

OpenStorageNetwork/coldfront-plugin-api

This branch is 13 commits behind nerc-project/coldfront-plugin-api:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 14, 2024
Aug 14, 2023
Aug 14, 2023
Apr 12, 2024
Mar 20, 2024
Apr 14, 2023
Feb 14, 2024
Apr 14, 2023
Aug 17, 2023
Aug 17, 2023
Feb 14, 2024
Feb 13, 2024
May 3, 2023
Aug 14, 2023

Repository files navigation

Coldfront API Plugin

REST API plugin for ColdFront.

See openapi.yaml for OpenAPI specification.

ColdFront doesn't currently provide a mechanism for allowing out of tree plugins to expose URLs, so applying the patch file at patches/01_add_api_urls.patch is required.

The plugin can be enabled by adding coldfront_plugin_api to ENABLED_APPS in the Django local_settings.py.

If the environment variable PLUGIN_AUTH_OIDC is detected, authentication will be done through mozilla-django-oidc, using the same configuration as the rest of ColdFront.

Note: If using service accounts and Keycloak, it is necessary to add openid to the client scope of the service account performing the API request. This step is because the mozilla-django-oidc Django Rest Framework implementation uses the userinfo endpoint to validate tokens and that endpoint requires openid scope. If you're receiving a 403 Forbidden and wondering why, that might be the cause. For more information, see client scope documentation.

About

Simple REST API plugin for ColdFront

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.5%
  • Shell 1.5%