Auth Profile: Dynamic Authorization URL. How?

Hello all,

I set up an Authorization profile (oAuth2), but for my needs the tenant id is in the path (as below example). My desire is to set TENANT_ID variable passed up by the client-side of the bot and read in from something like:
context.session.BotUserSession.lastMessage.messagePayload.botInfo.customData.tenantId

The documentation leads me to believe you can use variables in the authorization profile. In fact it explicitly states:

In the Authorization Check URL field, optionally define a URL that can be used to test the authorization settings from Bot Builder before you deploy the Bot with the authorization mechanism. You can use dynamic fields, path parameter fields, query fields, and so forth, to define the test URL.

I just can’t get this to work, and I’m tired of…beating…my…head…against…my…keyboard…ow…urrghh.

What am I missing?

Example URL: https://api.xxxx.zzz/login/v1/{{TENANT_ID}}/oidc/authorize

Thanks

Hi @lee.anderson,

We are working on this scenario and will provide appropriate screenshots of working model soon.

Regards,
Yoga Ramya

Hi @lee.anderson,

Apologies for the delay in response.
We infer from your description that you would like to pass a dynamic field in the API URL.
Please find the example below:
image

Let us know if you need any further clarification.

Regards,
Yoga Ramya