Skip to content
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

Error when login with oauth custom provider #159

Open
CrafterLP2007 opened this issue Feb 12, 2025 · 0 comments
Open

Error when login with oauth custom provider #159

CrafterLP2007 opened this issue Feb 12, 2025 · 0 comments

Comments

@CrafterLP2007
Copy link

Docker Compose file configuration:

AUTH_CUSTOM_NAME: Custom
AUTH_CUSTOM_TYPE: oauth
AUTH_CUSTOM_ISSUR: https://mydomain.tld/application/o/tianji/.well-known/openid-configuration
AUTH_CUSTOM_ISSUER: https://mydomain.tld/application/o/tianji/.well-known/openid-configuration
AUTH_CUSTOM_ID: MY_ID
AUTH_CUSTOM_SECRET: MY_SECRET

Logs:

tianji-1    | [auth][error] OperationProcessingError: "response" is not a conform Authorization Server Metadata response
tianji-1    |     at Module.processDiscoveryResponse (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/oauth4webapi/build/index.js:233:15)
tianji-1    |     at getAuthorizationUrl (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/signin/authorization-url.js:19:28)
tianji-1    |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
tianji-1    |     at async Module.signIn (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/signin/index.js:10:56)
tianji-1    |     at async AuthInternal (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/index.js:60:24)
tianji-1    |     at async Auth (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/index.js:109:34)
tianji-1    |     at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@auth/express/index.js:141:45
tianji-1    | POST /api/auth/signin/custom 200 - - 167.333 ms
tianji-1    | Error: user.info TRPCError: No Token or Session
tianji-1    |     at file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:90:11
tianji-1    |     at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
tianji-1    |     at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:30:21
tianji-1    |     at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
tianji-1    |     at async procedure (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:176:24)
tianji-1    |     at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:249:30
tianji-1    |     at async Promise.all (index 0)
tianji-1    |     at async resolveResponse (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:488:26)
tianji-1    |     at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs:70:34 {
tianji-1    |   cause: undefined,
tianji-1    |   code: 'UNAUTHORIZED'
tianji-1    | }
tianji-1    | GET /api/auth/error?error=Configuration 500 - - 3.953 ms
tianji-1    | GET /trpc/user.info?batch=1&input=%7B%7D 401 - - 3.914 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant