Gb
IImmich
•Created by Gb on 8/9/2023 in #help-desk-support
caddy + oauth
Hi,
Im trying to setup oauth with authentik and caddy as a reverse proxy, however when I enable oauth im greated with a internal server error and no "login with oauth" button is populated.
Everything works with normal user + pass login.
Caddyfile: REDACTED {
reverseproxy 192.168.1.10:2283
}
chrome logs:
(anonymous) @ indehandle-error.fd12a3ed.js:1 [handleError]: Unable to connect! {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}code: "ERR_BAD_RESPONSE"config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}adapter: ƒ (u)data: "{"redirectUri":"https://REDACTED/auth/login\"}"env: {FormData: null}headers: {Accept: 'application/json, text/plain, /', Content-Type: 'application/json'}maxBodyLength: -1maxContentLength: -1method: "post"timeout: 0transformRequest: [ƒ]transformResponse: [ƒ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "/api/oauth/config"validateStatus: ƒ (r)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequestonabort: ƒ ()onerror: ƒ ()onload: nullonloadend: ƒ me()onloadstart: nullonprogress: nullonreadystatechange: nullontimeout: ƒ ()privateTokenOperationError: nullreadyState: 4response: "{"statusCode":500,"message":"Internal server error"}"responseText: "{"statusCode":500,"message":"Internal server error"}"responseType: ""responseURL: "https://REDACTED/api/oauth/config"responseXML: nullstatus: 500statusText: ""timeout: 0upload: XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …}withCredentials: false[[Prototype]]: XMLHttpRequestresponse: {data: {…}, status: 500, statusText: '', headers: {…}, config: {…}, …}[[Prototype]]: Error
8 replies