Skip to content

Authentik OIDC: [ERROR] failed to exchange token: oauth2: "invalid_grant" #731

Closed
@psyspy1

Description

@psyspy1

Hello! I have been using your service for over a week now it's been working great! Today, I tried adding OIDC to filebrowser. Here's my filebrowser config.yaml:

auth:
  methods:
    password:
      enabled: false # set to false if you only want to allow OIDC
    oidc:
      enabled: true
      clientId: "blahblah"
      clientSecret: "blahblah2"
      issuerUrl: https://authentik.server.psyspy.com/application/o/filebrowser/ 
      scopes: "email openid profile"
      userIdentifier: "email"
      logoutRedirectUrl: https://authentik.server.psyspy/com/application/o/filebrowser/end-session/

I get the following error when try loading filebrowser:

{"status":500,"message":"failed to exchange token: oauth2: \"invalid_grant\" \"The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client\""}

I am unable to figure out where the error is. I appreciate any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionsomething stopped working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions