mirror of
https://github.com/pelican-dev/plugins.git
synced 2026-05-09 08:26:01 +02:00
[GH-ISSUE #81] [Generic OIDC Providers] Client Secret Truncation #50
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/plugins#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @insane-kane on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/pelican-dev/plugins/issues/81
Upon installation of this plugin, it creates a new database table for OIDC providers in MariaDB (MySQL). In this table, it creates the row "client_secret" with type "string" which results in type "varchar(255)" in MairaDB. This is fine if you have a reasonably short client secret. But longer secrets, once hashed easily exceed 255 characters and are truncated, resulting in an immediate HTTP 500 error when creating a OIDC provider using too long of a secret. This can be easily mitigated by changing field types from "string" to "text."
Here is an excerpt from laravel*.log showing the result of creating a OIDC provider with a long client secret:
pelicanError.txt