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
[#55643] Update API docs with JWT OIDC auth.
Pavel Balashou50271d3db3c3
diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex e0eb062cdf7..e097cab19c2 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -87,10 +87,22 @@ info:- [Authorization code flow](https://oauth.net/2/grant-types/authorization-code)- - [Authorization code flow with PKCE](https://doorkeeper.gitbook.io/guides/ruby-on-rails/pkce-flow), recommended for clients unable to keep the client_secret confidential.+ - [Authorization code flow with PKCE](https://doorkeeper.gitbook.io/guides/ruby-on-rails/pkce-flow), recommended for clients unable to keep the client_secret confidential- [Client credentials](https://oauth.net/2/grant-types/client-credentials/) - Requires an application to be bound to an impersonating user for non-public access+ ### 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.+ 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 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+### Why not username and password?The simplest way to do basic auth would be to use a user's username and password naturally.