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
[#43653] fixed auth state with invalid client tokens
Eric Schuberta1670e6def76
diff --git a/app/services/oauth_clients/connection_manager.rb b/app/services/oauth_clients/connection_manager.rbindex 60373dd6b00..bbac9482539 100644--- a/app/services/oauth_clients/connection_manager.rb+++ b/app/services/oauth_clients/connection_manager.rb@@ -132,16 +132,7 @@ module OAuthClientsservice_result = refresh_token # `refresh_token` already has exception handlingreturn :connected if service_result.success?- if service_result.result == 'invalid_grant'- # This can happen if the Authorization Server invalidated all tokens.- # Then the user would ideally be asked to reauthorize.- :failed_authorization- else- # It could also be that some other error happened, i.e. firewall badly configured.- # Then the user needs to know that something is technically off. The user could try- # to reload the page or contact an admin.- :error- end+ :failed_authorizationrescue StandardError:errorend