Skip to main content
The First Step
Apr 12, 2021 8:34 PM UTC
Question

Ring Out Dynamic User ,Ring Out dynamic user

How can we use ring out with the current logged in user and not hard code the below details? Currently using SSO with Microsoft Azure.

const string RINGCENTRAL_USERNAME = "<YOUR ACCOUNT PHONE NUMBER>";
const string RINGCENTRAL_PASSWORD = "<YOUR ACCOUNT PASSWORD>";
const string RINGCENTRAL_EXTENSION = "<YOUR EXTENSION, PROBABLY '101'>";

,

How can we use the ring out but instead of hard coding the username, pull the current logged in user. Currently using SSO Microsoft Azure.


const string RINGCENTRAL_USERNAME = "<YOUR ACCOUNT PHONE NUMBER>";

const string RINGCENTRAL_PASSWORD = "<YOUR ACCOUNT PASSWORD>";

const string RINGCENTRAL_EXTENSION = "<YOUR EXTENSION, PROBABLY '101'>";

    6 replies

    PhongVu
    Community Manager
    Community Manager
    Apr 12, 2021 9:41 PM UTC
    nick-1The First StepAuthor
    The First Step
    Apr 12, 2021 10:12 PM UTC

    Ok if I do that do i not need

    const string RINGCENTRAL_EXTENSION = "<YOUR EXTENSION, PROBABLY '101'>";

    or do I put something in place for those variables?

    PhongVu
    Community Manager
    Community Manager
    Apr 13, 2021 12:12 AM UTC

    Do that? Do what?

    nick-1The First StepAuthor
    The First Step
    Apr 13, 2021 12:44 AM UTC

    lol sorry was trying to reply from my phone.

    So if I use the 3-legged authorization


    Will I still use https://developers.ringcentral.com/guide/voice/quick-start#c# for ring out?


    If so then do I delete


    -------------------

    const string RINGCENTRAL_USERNAME = "<YOUR ACCOUNT PHONE NUMBER>";

    const string RINGCENTRAL_PASSWORD = "<YOUR ACCOUNT PASSWORD>";

    const string RINGCENTRAL_EXTENSION = "<YOUR EXTENSION, PROBABLY '101'>";

    ------------------


    Or do i put some type of variable that is pulled from the 3-legged authorization. I don't see anything in the response that would fit the above variables.

    nick-1The First StepAuthor
    The First Step
    Apr 13, 2021 1:00 AM UTC

    Unfortunately the sample apps and sample code that RingCentral shows everywhere uses the Password flow.

    PhongVu
    Community Manager
    Community Manager
    Apr 13, 2021 3:26 AM UTC