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
Is it possible to create an Auth Code app without a physical login page - can it be done programmatically?
Tags: authentication, graduation
Dec 16, 2020 at 1:38am   •   3 replies  •  0 likes
Matthew Herbert

Hi there

I need to create an app for using with Avaya Cloud Office. According to the documentation and when I create the app, I can only do this if my app is set up with "Auth Code" authentication, even though my app is only for members of my own organisation to use. I have created a working "private" app in the RingCentral Sandbox environment using password flow and my CRM, which I wrote, programmatically authenticates (no need for a physical login page or real person interaction; it is all automatic). This works perfectly using Password Flow.

However for my app to be graduated and migrated for use with Avaya Cloud Office I am only allowed to use Auth Code authentication (even though my app is private and only for members of my organisation to use) but from everything I have read and learnt "Auth Code" only works with a physical login page which requires a real person to physically interact and enter credentials into the login page. I need it all to work programmatically like it does with Password Flow. Please can anyone tell me if there is a way for an app using Auth Code to authenticate programmatically in a similar way that Password Flow does?


Or alternatively is it possible for me to simply use my private app which uses Password Flow authentication in Avaya Cloud Office (as it is only for members of my own organisation to use )?


Thank you very much for any help. I really appreciate it.

Matt

3 Answers
answered on Dec 18, 2020 at 9:33am  

Please can you tell me how I can use Postman to "pass" an example telephone number and pass an example "dateFrom" to my app so I can return the call log only for that telephone number for all results received on or after the specified "dateFrom" value? Currently I am able to return the whole entire call log but I want to be able to query and filter to show all results in the logs for a particular telephone number and dateFrom value and even dateTo value if possible.

Thank you for any help. I really appreciate it.


 0
answered on Dec 16, 2020 at 4:50am  

Ok thank you for your reply. In that case is there a way for me to use one admin user's login credentials for all my users in my web application to use on the login page, and also to set the token so it does not expire for 24 hours (once the user has logged in successfully)? I do not want my users having to login each time they want to access one call recording.

Thank you again for you r help.


 0
answered on Dec 16, 2020 at 4:24am  

The Authorization code grant_type is designed to involve a user so in that regard HTTP Client does the right thing with User's consent so it involve user's interaction everytime.

Authorization Code flow is meant to work with user interaction , that usually means logging into a web app that calls the API you are trying to authenticate into, and then consenting on the consent page.

refer:https://stackoverflow.com/questions/44338204/oauth2-authorize-with-no-user-interaction

https://stackoverflow.com/questions/56495738/retrieve-oauth-2-0-authorization-code-without-user-interaction


 0
answered on Dec 16, 2020 at 8:45am  

@Anirban Just to add my private app is just for one user account to access. It is only for a member of our organisation to use. I really want to try and keep it as private (because only one account accesses it), graduate it, and make it access our production ACO (instead of RingCentral). We do not use RingCentral. Is this possible please?


 0



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