-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure the OIDC callback? #1159
Comments
Cannot reproduce on latest community edition. I'm using a free, self-hosted Authentik instance as SSO provider:
Reformatted error for someone to analyze: {
"level": 30,
"time": 1733964755950,
"pid": 7,
"hostname": "f5157c07fb6d",
"name": "teable",
"req": {
"id": "f5834e15eedf414bf71f9fd8aa67b567",
"method": "GET",
"url": "/api/auth/oidc/callback?code=Cff6e5buyynvaZ4cMeXTJREsJrg27fchDR9IJWdoJEMTLRDrW522hqxtgKYi&state=Um4PaMG1rr9ylain",
"query": {
"code": "Cff6e5buyynvaZ4cMeXTJREsJrg27fchDR9IJWdoJEMTLRDrW522hqxtgKYi",
"state": "Um4PaMG1rr9ylain"
},
"params": {
"0": "api/auth/oidc/callback"
},
"remoteAddress": "::ffff:172.18.0.1",
"remotePort": 59442
},
"res": {
"statusCode": 500
},
"err": {
"type": "Error",
"message": "failed with status code 500",
"stack": ...
},
"responseTime": 20,
"spanId": "41be9ca0be867087",
"traceId": "f5834e15eedf414bf71f9fd8aa67b567",
"msg": "request errored"
}
It's probably broken OIDC server. |
i found problem,but how to set the username that is returned after OIDC (OpenID Connect) login? Currently, after authorized login, the email prefix is displayed in Tableau. How can I customize this username? |
OIDC server should return a response similar to this: {
"iss": "https://auth.example.com/application/o/teable/",
"sub": [REDACTED],
"aud": [REDACTED],
"exp": [REDACTED],
"iat": [REDACTED],
"auth_time": [REDACTED],
"acr": "goauthentik.io/providers/oauth2/default",
"amr": [
"pwd"
],
"email": "user+mail@example.com",
"email_verified": true,
"name": "John Smith",
"given_name": "John Smith",
"preferred_username": "john",
"nickname": "john",
"groups": [
"clients",
"teable"
]
} Teable only reads Your OIDC server probably sends email in the 'name' filed, check out OIDC server configuration for "property mappings". Footnotes |
Is your feature request related to a problem? Please describe.
When I configure the OIDCfor the CE version, my settings are as follows:
I'd like to know where the problem is.
Additional context
The server side of teable returns an error code of 500 this is log:
{"level":30,"time":1733964755950,"pid":7,"hostname":"f5157c07fb6d","name":"teable","req":{"id":"f5834e15eedf414bf71f9fd8aa67b567","method":"GET","url":"/api/auth/oidc/callback?code=Cff6e5buyynvaZ4cMeXTJREsJrg27fchDR9IJWdoJEMTLRDrW522hqxtgKYi&state=Um4PaMG1rr9ylain","query":{"code":"Cff6e5buyynvaZ4cMeXTJREsJrg27fchDR9IJWdoJEMTLRDrW522hqxtgKYi","state":"Um4PaMG1rr9ylain"},"params":{"0":"api/auth/oidc/callback"},"remoteAddress":"::ffff:172.18.0.1","remotePort":59442},"res":{"statusCode":500},"err":{"type":"Error","message":"failed with status code 500","stack":"Error: failed with status code 500\n at onResFinished (/app/node_modules/.pnpm/pino-http@9.0.0/node_modules/pino-http/logger.js:114:39)\n at ServerResponse.onResponseComplete (/app/node_modules/.pnpm/pino-http@9.0.0/node_modules/pino-http/logger.js:177:14)\n at /app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55\n at AsyncLocalStorage.run (node:async_hooks:335:14)\n at AsyncLocalStorageContextManager.with (/app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)\n at ServerResponse.contextWrapper (/app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)\n at ServerResponse.emit (node:events:526:35)\n at ServerResponse.emit (node:domain:488:12)\n at onFinish (node:_http_outgoing:1005:10)\n at callback (node:internal/streams/writable:608:21)"},"responseTime":20,"spanId":"41be9ca0be867087","traceId":"f5834e15eedf414bf71f9fd8aa67b567","msg":"request errored"}
The text was updated successfully, but these errors were encountered: