OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update API docs to reflect new JWT requirements
Jan Sandbrink5b616c59f967
diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex e2380b8abb6..bf94ee3ab51 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -93,16 +93,20 @@ info:### OIDC provider generated JWT as a Bearer token- There is a possibility to use JWT generated by OIDC provider configured in OpenProject as a bearer token to do authenticated requests agains API.+ There is a possibility to use JSON Web Tokens (JWT) generated by an OIDC provider configured in OpenProject as a bearer token to do authenticated requests against the API.The following requirements must be met:+- OIDC provider must be configured in OpenProject with **jwks_uri**- JWT must be signed using RSA algorithm- JWT **iss** claim must be equal to OIDC provider **issuer**- - JWT **aud** claim must contain OIDC provider **identifier**+ - JWT **aud** claim must contain the OpenProject **client ID** used at the OIDC provider+ - JWT **scope** claim must include a valid scope to access the desired API (e.g. `api_v3` for APIv3)- JWT must be actual (neither expired or too early to be used)- JWT must be passed in Authorization header like: `Authorization: Bearer {jwt}`- User from **sub** claim must be logged in OpenProject before otherwise it will be not authenticated+ In more general terms, OpenProject should be compliant to [RFC 9068](https://www.rfc-editor.org/rfc/rfc9068) when validating access tokens.+### Why not username and password?The simplest way to do basic auth would be to use a user's username and password naturally.