Use of Azure AppService Token store for arbitary OpenID access tokens?

Paul Bandler 1 Reputation point
2020-12-11T16:21:13.83+00:00

Is it possible to use the AppService Authentication (easyAuth) Token store to save tokens obtained using the OpenID connect 'Client Credentials Grant'?

Reason:
The easyAuth AppService feature intercepts https requests and handles the Authorisation Grant interactions, obtaining and refreshing Access Tokens which is great. But I also need to get access tokens when handling ServiceBus events so need to use a 'Client Credentials Grant' access token, and save and refresh it subsequently -- can I leverage this Token store for that - even just for storage would be useful.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
743 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,342 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,476 Reputation points Microsoft Employee
    2020-12-15T19:30:34.29+00:00

    Hi @Paul Bandler ,

    You can use the token store does indeed work with OpenID Connect Providers. The header should be X-MS-<provider_alias>-<token_type>-TOKEN.

    NOTE: Currently OpenID /.auth/refresh endpoint doesn't currently work. We do have that implementation on the backlog and working towards releasing it.

    Regards,
    Ryan

    1 person found this answer helpful.