38 Commits

Author SHA1 Message Date
Mir Bhatia 2c8c560861 Fix flaky oauth applications management spec
Failing spec:
./spec/features/admin/oauth/oauth_applications_management_spec.rb:40
Failing run:
https://github.com/opf/openproject/actions/runs/19169871346/job/54802405024?pr=20674

It needed more waits.
2025-11-07 17:42:39 +01:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Oliver Günther f791d33b72 Replace specs 2025-01-14 10:20:35 +01:00
Oliver Günther cd2d0f0e1a Remove primerized_flash prefix in methods 2024-09-30 21:39:36 +02:00
Oliver Günther 9cc3d98391 Replace expect_primerized_error -> expect_primerized_flash 2024-09-30 21:39:00 +02:00
Oliver Günther 1cf49e2c9f Adapt specs 2024-09-30 20:37:00 +02:00
Eric Schubert d2826943c5 [#58087] adapted test logic 2024-09-26 12:03:34 +02:00
Eric Schubert cf4c7c37fd [#53620] add feature flag for buit-in apps 2024-09-13 13:29:52 +02:00
Eric Schubert 820c4abbcc [#53620] fixed failing tests 2024-09-12 13:26:58 +02:00
Eric Schubert 8945bcc00a [#53620] rework of oauth app index page to primer 2024-09-11 10:12:10 +02:00
Oliver Günther ec234d2eda [#53620] Add OAuth application flow for builtin mobile app 2024-09-11 10:12:09 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Henriette Darge 337efdf508 Harmonize breadcrumb structure for Authentication menu with the help of PageHeader 2024-07-30 08:38:07 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
bsatarnejad 85411f20c7 change tests due to replacing .flash with .op-toast 2023-07-18 16:47:45 +02:00
Aaron Contreras a13cf3bc9c Switch admin/oauth/oauth_applications_management_spec to cuprite 2023-06-28 05:18:54 -05:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Christophe Bliard 9e865b4f7b lint: Run rubocop safe autocorrect
Command is `rubocop --safe --autocorrect app lib lib_static modules spec`
2023-03-09 10:25:57 +01:00
Christophe Bliard 85b3258a29 Autocorrect with some rubocop cops
RSpec/Rails/InferredSpecType and Style/RedundantConstantBase

rubocop --autocorrect-all --only RSpec/Rails/InferredSpecType,Style/RedundantConstantBase spec modules/*/spec
2023-01-13 14:28:59 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Wieland Lindenthal 8230707bcf Use same Secure Context validation for OAuth applications
Currently redirect_uri field of OAuth applications (Doorkeeper
Applications) did only check for 'localhost', which is not
complete. Other loopback URLs are also valid, such as
'http://127.0.0.1'.

Now, it is coherent with the allowed hosts of ::Storages::Storage
2022-07-27 18:29:28 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther f08bea3467 Remove FactoryBot.* prefix where applicable 2022-01-25 08:19:06 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Cyril Rohr b4086b2968 Standalone CI docker container (#8943) 2021-02-02 15:33:33 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Oliver Günther 81bd0e34cd [34025] Allow insecure localhost redirect_uri for OAuth
This makes it easier for developing and debugging local OAuth applications

https://community.openproject.com/wp/34025
2020-08-17 14:42:36 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
ulferts 17bd411b53 adapt the api authorization to the bcf api 2019-11-11 17:03:29 +01:00
Oliver Günther 0d5f50395e [29253] Render error message in production on pending migrations
Creates a new warning bar (previously top-shelf item) that renders a
warning when migrations are pending. These did raise exceptions before
in production and would result in users running in internal errors due
to pending migration on some actions on the instance.

https://community.openproject.com/wp/29253
2019-04-24 07:45:09 +02:00
Oliver Günther 59081c12f6 Fix specs after unifying 2019-01-11 09:33:36 +01:00
Oliver Günther f2de2d9cc9 Enable refresh tokens 2019-01-10 15:17:37 +01:00
Oliver Günther 87018f40f3 Show application secrets only once 2019-01-09 08:40:21 +01:00
Oliver Günther e41d85e9c7 Implement OAuth applications CRUD 2019-01-09 08:40:21 +01:00