Skip to content

[BUG] OIDC ClientID config integer conversion #1941

@dr4y

Description

@dr4y

Environment

Self-Hosted (Docker)

System

Firefox

Version

3.1.1

Describe the problem

Using a Client ID with only numbers converts to integer. This leads to the effect, that a number longer than 16 digits will zero out following digits or even uses it as e+01

Testcases:

Test-Case 1:

appConfig:
  theme: colorful
  auth: 
    enableOidc: true
    oidc:
      clientId: 918756876419824312
      endpoint: https://idp.xx.de/

Excepted behavior: https://idp.xx.de/oauth/v2/authorize?client_id=918756876419824312&...
Real behavior: https://idp.xx.de/oauth/v2/authorize?client_id=918756876419824300&...

Test-Case 2:

appConfig:
  theme: colorful
  auth: 
    enableOidc: true
    oidc:
      clientId: 91875687641982431213254325132521351325
      endpoint: https://idp.xx.de/

Excepted behavior: https://idp.xx.de/oauth/v2/authorize?client_id=91875687641982431213254325132521351325&...
Real behavior: https://idp.xx.de/oauth/v2/authorize?client_id=9.187568764198242e%2B37&...

Test-Case 3 (Workaround):

appConfig:
  theme: colorful
  auth: 
    enableOidc: true
    oidc:
      clientId: "918756876419824312"
      endpoint: https://idp.xx.de/

Excepted behavior: https://idp.xx.de/oauth/v2/authorize?client_id=918756876419824312&...
Real behavior: https://idp.xx.de/oauth/v2/authorize?client_id=918756876419824312&...

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working

Projects

Status

Awaiting Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions