News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Javascript 3 legged authorization
Tags: authentication
Dec 6, 2021 at 6:41am   •   2 replies  •  0 likes
Benny Dadon

I just follow these steps and got error
https://developers.ringcentral.com/guide/authentication/quick-start#javascript

1638801129796.png

my index.js file is here

1638801624818.png


2 Answers
answered on Dec 16, 2021 at 1:08pm  

Hi @Benny Dadon I was able to successfully follow the RingCentral tutorial and build this app. I packaged this demo into a simple node.js app. You can clone and run it, just follow the steps as described in the README. Demo App: https://github.com/suyashjoshi/ringcentral-js-auth


 0
answered on Dec 6, 2021 at 9:05am  

What is the error? The express-session deprecated warning is not an error and does not stop the app. To eliminate the warning, follow the answers from this thread.

https://stackoverflow.com/questions/28839532/node-js-session-error-express-session-deprecated/34744627


 0
on Dec 6, 2021 at 11:41am   •  0 likes

If I hit from broswer then show error.

1638819677993.png

on Dec 6, 2021 at 11:57am   •  0 likes

Which meant that you did not read the entire quick start and implement the index.ejs and the test.ejs files.

https://developers.ringcentral.com/guide/authentication/quick-start

screen-shot-2021-12-06-at-115501-am.png

on Dec 6, 2021 at 11:49pm   •  0 likes

Thanks for the feedback I create a views folder and move index.ejs and test.ejs into the view folder but still got error.

1638863211153.png

My project folder

1638863267999.png

views folder

1638863349710.png

on Dec 7, 2021 at 7:33am   •  0 likes

Did you kill the process and rerun it?

on Dec 7, 2021 at 8:11am   •  0 likes

I try multiple times to rerun but get the same error every time.

on Dec 7, 2021 at 10:44am   •  0 likes

Unfortunately, that is your environment problem that I cannot see and help. It works well on my site

screen-shot-2021-12-07-at-103348-am.png

Double check by adding this line to the index.js code to see if the path to the views folder is correct

console.log(path.join(__dirname, 'views'))

You can try without the path.join to set the /views folder by following instructions from this site https://www.digitalocean.com/community/tutorials/how-to-use-ejs-to-template-your-node-application

on Dec 6, 2021 at 11:39am   •  0 likes

If this not stop the app then why app not show next anything just stop here

1638819527447.pngAny issue in it?



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us