Hi @Hong. Thank you for your answer. But this package is possible to run inside of running application on RStudio Connect, but I would like to login into RStudio Connect using this Azure OAuth2 if is possible.
I am not sure where the YAML code comes from. The necessary ClientId is generated when you register the application. It is called "Application (client) ID" in the overview page. You can create a new ClientSecret in the "Certificates & secrets" page.
Hi @rstub. The YAML is from shinyproxy application, which was used as template. Because clientId and secretId are there also. But I did not found any URL specification, so rstudio-connect always try to use google auth, but I would like to change it to microsoft.
In the Azure portal on the overview page of your app you can click on "Endpoints". This will give you a list of relevant URLs including the "OpenID Connect metadata document" of the form https://login.microsoftonline.com/<your Directory (tenant) ID>/v2.0/.well-known/openid-configuration. From the docs we have
To use a provider other than Google, an OpenID Connect issuer must be defined on OAuth2.OpenIDConnectIssuer. The issuer must be an HTTPS URL and the location of the /.well-known/openid-configuration discovery metadata for OpenID Connect.
So OpenIDConnectIssuer should be set to https://login.microsoftonline.com/<your Directory (tenant) ID>/v2.0/.