15 Commits

Author SHA1 Message Date
Dombi Attila d006b8059d Merge branch 'dev' into merge-release/17.1-20260206041730 2026-02-06 14:27:00 +02:00
Jan Sandbrink 4d305df714 Allow to use API Tokens as Bearer tokens
We generate those tokens with a prefix, so that we
can decide by looking at a token, whether it's an API Token
or a different kind of token, so that we can decide which
code path to choose for validating the token.

The usage of access tokens as Bearer token has the usability advantage,
that you can paste them as plaintext into tools that expect you
to specify the token as a header.

Also the Basic auth approach for our old tokens usually rather caused
issues, such as browsers prompting for credentials in surprising situations.
If we were to deprecate basic authentication one day, this change today could've
been the first step towards that.
2026-02-05 08:07:04 +01:00
Oliver Günther b718dc0430 Get rid of find_by_plaintext_value! 2026-02-04 15:16:09 +01:00
Oliver Günther 492c900bae Use stable hashed token pepper, fallback to key base 2026-02-04 15:16:09 +01:00
Oliver Günther bea773764d Better interface to ExpirableToken 2025-09-24 13:46:09 +02:00
Klaus Zanders 676651afd8 Remove many case statements and move ical token into meetings module 2025-08-18 13:42:56 +02:00
Klaus Zanders 33abd7c74e Add specs for controller 2025-08-18 13:42:42 +02:00
Alexander Brandon Coles dd8ead6456 Fix missing copyright notices in app/models 2025-07-22 18:26:13 +01:00
Alexander Brandon Coles d17da65477 Freeze string literals in app/models
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/models
2025-07-22 18:26:13 +01:00
Dombi Attila 6b72125819 Use Rails.application.secret_key_base 2024-02-01 14:22:07 +02:00
Dombi Attila 8ffa313bb8 Fix deprecation warnings 2024-02-01 14:22:06 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
ulferts 89cfee203f remove usage of require_dependency
according to the rails 6 migration guide, it should no longer be necessary: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#require-dependency
2022-01-07 14:46:21 +01:00
Oliver Günther 518c255c1a Fix API token usage and specs 2017-11-09 14:13:50 +01:00
Oliver Günther 1f2492bb8b Implement HashedToken (ExtendedToken from MOTP) in Core 2017-11-07 09:12:52 +01:00