Skip to content

oidc: failed to decode provider discovery object #816

@mitchplze

Description

@mitchplze

Description
I am trying to setup OIDC authentication on a new install of Filebrowser, to connect to Pocket ID.

Expected behaviour
Expected an OIDC login flow to kick-off

What is happening instead?
Container does not start and throws:

[FATAL] Error validating OIDC auth: url 'https://id.mydomain.com/authorize' failed to create OIDC provider: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got "text/html; charset=utf-8": invalid character '<' looking for beginning of value

Additional context
I have never had an issue with the Pocket ID /authorize endpoint on any other applications. I have approximately 20+ other apps configured out of the box with Pocket ID / OIDC.

How to reproduce?

  • Deploy Pocket ID
  • Create new OIDC client
  • Copy ID, secret values
  • Provide in config to filebrowser

Files

data/config.yaml:

server:
  sources:
    - path: /mnt
auth:
  methods:
    oidc:
      enabled: true
      clientId: "redacted"
      clientSecret: "redacted"
      issuerUrl: "https://id.mydomain.com/authorize"
      scopes: "email openid profile"
      userIdentifier: "username"
      disableVerifyTLS: false
      createUser: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions