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

OAuth error #15

Open
nkstnkst opened this issue May 8, 2024 · 2 comments
Open

OAuth error #15

nkstnkst opened this issue May 8, 2024 · 2 comments

Comments

@nkstnkst
Copy link

nkstnkst commented May 8, 2024

I followed the instructions. When I try to install the app by visiting /api/zoomapp/install, this error happens.

backend_1   | INSTALL HANDLER ========================================================== 
backend_1   | 
backend_1   | 1. Begin add app - generated state for zoom auth and saved: 75ZsRuO7L6t3gM5Uf3vx4QjwGDcCwIhUJeZ9A4DvCEw=.ba72b981a52beb7b37dd48fba2798c956f90a99c43e62465794e29d0418cecf28970acfe56e6f960805acaac6a258c3d3d172c0230a578ed81094af30005ecff 
backend_1   | 
backend_1   | 2. Redirect url to authenticate to Zoom: "https://zoom.us"/oauth/authorize?redirect_uri=https%3A%2F%2F6d09-76-132-152-88.ngrok-free.app%2Fapi%2Fzoomapp%2Fauth&response_type=code&client_id=%22YXf4n__BTL68qDVZTf1gQ%22&state=75ZsRuO7L6t3gM5Uf3vx4QjwGDcCwIhUJeZ9A4DvCEw%3D.ba72b981a52beb7b37dd48fba2798c956f90a99c43e62465794e29d0418cecf28970acfe56e6f960805acaac6a258c3d3d172c0230a578ed81094af30005ecff 
backend_1   | 
backend_1   | 3. Redirecting to redirect url 
backend_1   | 
backend_1   | GET /api/zoomapp/install 302 1.033 ms - 788
backend_1   | GET /api/zoomapp/%22https://zoom.us%22/oauth/authorize?redirect_uri=https%3A%2F%2F6d09-76-132-152-88.ngrok-free.app%2Fapi%2Fzoomapp%2Fauth&response_type=code&client_id=%22YXf4n__BTL68qDVZTf1gQ%22&state=75ZsRuO7L6t3gM5Uf3vx4QjwGDcCwIhUJeZ9A4DvCEw%3D.ba72b981a52beb7b37dd48fba2798c956f90a99c43e62465794e29d0418cecf28970acfe56e6f960805acaac6a258c3d3d172c0230a578ed81094af30005ecff 404 0.714 ms - 1052
backend_1   | Error: Not found
backend_1   |     at /home/node/app/server.js:50:17
backend_1   |     at Layer.handle [as handle_request] (/home/node/app/node_modules/express/lib/router/layer.js:95:5)
backend_1   |     at trim_prefix (/home/node/app/node_modules/express/lib/router/index.js:328:13)
backend_1   |     at /home/node/app/node_modules/express/lib/router/index.js:286:9
backend_1   |     at Function.process_params (/home/node/app/node_modules/express/lib/router/index.js:346:12)
backend_1   |     at next (/home/node/app/node_modules/express/lib/router/index.js:280:10)
backend_1   |     at /home/node/app/node_modules/express/lib/router/index.js:646:15
backend_1   |     at next (/home/node/app/node_modules/express/lib/router/index.js:265:14)
backend_1   |     at Function.handle (/home/node/app/node_modules/express/lib/router/index.js:175:3)
backend_1   |     at router (/home/node/app/node_modules/express/lib/router/index.js:47:12)
@DerekCL
Copy link

DerekCL commented Jun 7, 2024

Can Confirm the above. Get a 302 Found on /api/zoomapp/install but then get a invalid URL on

Invalid redirect: https://numbers-ngrok-free.app/api/zoomapp/auth (4,700)

@RealmX1
Copy link

RealmX1 commented Oct 30, 2024

The same issue still poersist

backend-1   | GET /api/zoomapp/install 302 9.134 ms - 390                                                                                                                   
backend-1   | ZOOM OAUTH REDIRECT HANDLER  ==============================================                                                                                   
backend-1   | 
backend-1   | 1. Handling redirect from zoom.us with code and state following authentication to Zoom                                                                        
backend-1   |                                                                                                                                                               
backend-1   | 1a. code param exists: 3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw                                                                                                      
backend-1   |                                                                                                                                                               
backend-1   | 1b. state param is correct/matches ours: M1cwDygob0jy5I7EOq2Hx2h8FMxi+AfJB631YMf7mQ=.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3                                                                                                                     
backend-1   | 
backend-1   | 2. Getting Zoom access token and user                                                                                                                         
backend-1   |                                                                                                                                                               
backend-1   | 2a.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1MmpnIiwiZ25vIjowLCJ0eXBlIjoxLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczODA0ODU2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.SVTFYrepfbNiahpObmC3e3MSy15JsG97uySR3fofNX3IhqdMIE1jRPH2-cG9PVO-1Iv6Drk7ie4bItu4JQYO4w',
backend-1   |   expires_in: 3599,
backend-1   |   scope: 'zoomapp:inmeeting',                                                                                                                                 
backend-1   |   api_url: 'https://api.zoom.us'                                                                                                                              
backend-1   | } 
backend-1   |                                                                                                                                                               
NmU3M2VmNGYyMmY2NzE4MmFkYmU5NmYwYzAwNWU3NjUzNzEwNzQ0NTVhZDIzY2M1OGMyOGExNDNhZTk2YyIsImNvZGUiOiIzajBBZWx4eXowRXFxby0xSmtEU1gtQmdxMHBjVDY2U3ciLCJpc3MiOiJ6bTpjaWQ6VHFwMUFITUJTWm01S0Q0SDV1MmpnIiwiZ25vIjowLCJ0eXBlIjowLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczMDI3NjE2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.30lCcIO8Y92UiLaqxKM6W5zGOFPoyLQliLwX2aZ2fjsyJjR8omjR_Oy3aTGz8U6j9jW_3FpDFoh6E0CfFLEJLQ',
backend-1   |   token_type: 'bearer',
backend-1   |   refresh_token: 'eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImMwZjkxNmQ2LTk4MjgtNDE1Ny1iZDdlLWRkYzE4Yzc1MTc5YiJ9.eyJ2ZXIiOjEwLCJhdWlkIjoiOTIxNmU3M2VmNGYyMmY2NzE4MmFkYmU5NmYwYzAwNWU3NjUzNzEwNzQ0NTVhZDIzY2M1OGMyOGExNDNhZTk2YyIsImNvZGUiOiIzajBBZWx4eXowRXFxby0xSmtEU1gtQmdxMHBjVDY2U3ciLCJpc3MiOiJ6bTpjaWQ6VHFwMUFITUJTWm01S0Q0SDV1MmpnIiwiZ25vIjowLCJ0eXBlIjoxLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczODA0ODU2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.SVTFYrepfbNiahpObmC3e3MSy15JsG97uySR3fofNX3IhqdMIE1jRPH2-cG9PVO-1Iv6Drk7ie4bItu4JQYO4w',
backend-1   |   expires_in: 3599,
backend-1   |   scope: 'zoomapp:inmeeting',
backend-1   |   api_url: 'https://api.zoom.us'
backend-1   | }
backend-1   |
backend-1   | GET /api/zoomapp/auth?code=3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw&state=M1cwDygob0jy5I7EOq2Hx2h8FMxi%2BAfJB631YMf7mQ%3D.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3 500 273.258 ms - 957
Wm01S0Q0SDV1MmpnIiwiZ25vIjowLCJ0eXBlIjowLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczMDI3NjE2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.30lCcIO8Y92UiLaqxKM6W5zGOFPoyLQliLwX2aZ2fjsyJjR8omjR_Oy3aTGz8U6j9jW_3FpDFoh6E0CfFLEJLQ',
backend-1   |   token_type: 'bearer',
backend-1   |   refresh_token: 'eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImMwZjkxNmQ2LTk4MjgtNDE1Ny1iZDdlLWRkYzE4Yzc1MTc5YiJ9.eyJ2ZXIiOjEwLCJhdWlkIjoiOTIxNmU3M2VmNGYyMmY2NzE4MmFkYmU5NmYwYzAwNWU3NjUzNzEwNzQ0NTVhZDIzY2M1OGMyOGExNDNhZTk2YyIsImNvZGUiOiIzajBBZWx4eXowRXFxby0xSmtEU1gtQmdxMHBjVDY2U3ciLCJpc3MiOiJ6bTpjaWQ6VHFwMUFITUJTWm01S0Q0SDV1MmpnIiwiZ25vIjowLCJ0eXBlIjoxLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczODA0ODU2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.SVTFYrepfbNiahpObmC3e3MSy15JsG97uySR3fofNX3IhqdMIE1jRPH2-cG9PVO-1Iv6Drk7ie4bItu4JQYO4w',
backend-1   |   expires_in: 3599,
backend-1   |   scope: 'zoomapp:inmeeting',
backend-1   |   api_url: 'https://api.zoom.us'
backend-1   | }
backend-1   |
backend-1   | GET /api/zoomapp/auth?code=3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw&state=M1cwDygob0jy5I7EOq2Hx2h8FMxi%2BAfJB631YMf7mQ%3D.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3 500 273.258 ms - 957
TWm01S0Q0SDV1MmpnIiwiZ25vIjowLCJ0eXBlIjoxLCJ0aWQiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsInVpZCI6IlNJVDh4RWJBU3ctbnAwcVdmVkJBclEiLCJuYmYiOjE3MzAyNzI1NjYsImV4cCI6MTczODA0ODU2NiwiaWF0IjoxNzMwMjcyNTY2LCJhaWQiOiJ5Ump6LTYxV1FJLVVzNkg3S3BEb29RIn0.SVTFYrepfbNiahpObmC3e3MSy15JsG97uySR3fofNX3IhqdMIE1jRPH2-cG9PVO-1Iv6Drk7ie4bItu4JQYO4w',
backend-1   |   expires_in: 3599,
backend-1   |   scope: 'zoomapp:inmeeting',
backend-1   |   api_url: 'https://api.zoom.us'
backend-1   | }
backend-1   |
backend-1   | GET /api/zoomapp/auth?code=3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw&state=M1cwDygob0jy5I7EOq2Hx2h8FMxi%2BAfJB631YMf7mQ%3D.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3 500 273.258 ms - 957
backend-1   |   scope: 'zoomapp:inmeeting',
backend-1   |   api_url: 'https://api.zoom.us'
backend-1   | }
backend-1   |
backend-1   | GET /api/zoomapp/auth?code=3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw&state=M1cwDygob0jy5I7EOq2Hx2h8FMxi%2BAfJB631YMf7mQ%3D.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3 500 273.258 ms - 957
backend-1   | AxiosError: Request failed with status code 400
backend-1   |     at settle (/home/node/app/node_modules/axios/dist/node/axios.cjs:2015:12)
backend-1   |
backend-1   | GET /api/zoomapp/auth?code=3j0Aelxyz0Eqqo-1JkDSX-Bgq0pcT66Sw&state=M1cwDygob0jy5I7EOq2Hx2h8FMxi%2BAfJB631YMf7mQ%3D.061a51d314e9e8c3bda5cabb61e88ca9f928a0ec9f5d1647a30af4e9b110c2405ce690c4f0351aaaef88d720ebf1311b87cf3b572e1cc949733d14b4a39039a3 500 273.258 ms - 957
backend-1   | AxiosError: Request failed with status code 400
backend-1   |     at settle (/home/node/app/node_modules/axios/dist/node/axios.cjs:2015:12)
backend-1   | AxiosError: Request failed with status code 400
backend-1   |     at settle (/home/node/app/node_modules/axios/dist/node/axios.cjs:2015:12)
backend-1   |     at settle (/home/node/app/node_modules/axios/dist/node/axios.cjs:2015:12)
backend-1   |     at IncomingMessage.handleStreamEnd (/home/node/app/node_modules/axios/dist/node/axios.cjs:3131:11)
backend-1   |     at IncomingMessage.handleStreamEnd (/home/node/app/node_modules/axios/dist/node/axios.cjs:3131:11)
backend-1   |     at IncomingMessage.emit (node:events:525:35)
backend-1   |     at endReadableNT (node:internal/streams/readable:1358:12)
backend-1   |     at IncomingMessage.emit (node:events:525:35)
backend-1   |     at endReadableNT (node:internal/streams/readable:1358:12)
backend-1   |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
backend-1   |     at endReadableNT (node:internal/streams/readable:1358:12)
backend-1   |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
backend-1   |     at Axios.request (/home/node/app/node_modules/axios/dist/node/axios.cjs:4262:41)
backend-1   |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
backend-1   |     at Axios.request (/home/node/app/node_modules/axios/dist/node/axios.cjs:4262:41)
backend-1   |     at Axios.request (/home/node/app/node_modules/axios/dist/node/axios.cjs:4262:41)
backend-1   |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
backend-1   |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
backend-1   |     at async Object.getZoomUser (/home/node/app/util/zoom-api.js:51:10)
backend-1   |     at async auth (/home/node/app/api/zoomapp/controller.js:202:28)

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

3 participants