I am trying to run the Sinatra sample app given in the Azure Active Directory Library for Ruby: https://github.com/AzureAD/azure-activedirectory-library-for-ruby. The sample is here: https://github.com/AzureAD/azure-activedirectory-library-for-ruby/tree/dev/samples/authorization_code_example
The provided README.md file tells me that I need to do this:
- Register a web application under your Azure Active Directory account.
- Replace
CLIENT_ID,CLIENT_SECRETandTENANTwith your values.
My problem is that it is not clear how to map any 3 of these values to the various fields available for the Web App that I have setup in Active Directory.
I am guessing that
TENANTmaps to a URL that will point my app to our ActiveDirectory configuration.I am guessing that
CLIENT_IDmaps to the application id of my web appI am very unsure about the
CLIENT_SECRET
I am looking for clarity on these three fields and anything else I need to do to make this sample work.