Hi John,
I have an app registration set up on portal.azure.com where I want to only allow users in my organisation's tenant to be able to log into my R Shiny app.
Firebase seems to launch the sign-in popup/redirect with the common/ endpoint by default. I can't seem to find where to change this to use my organisations tenant id.

This provides me with an error stating that Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.
Following along the firebase docs for microsoft-oauth I see that after you define a provider
`import { OAuthProvider } from "firebase/auth";
const provider = new OAuthProvider('microsoft.com');`
you can then add custom parameters, such as TENANT_ID.
provider.setCustomParameters({
// Optional "tenant" parameter in case you are using an Azure AD tenant.
// eg. '8eaef023-2b34-4da1-9baa-8bc8c9d6a490' or 'contoso.onmicrosoft.com'
// or "common" for tenant-independent tokens.
// The default value is "common".
tenant: 'TENANT_ID'
});
I can't seem to find where I can specify the tenant ID in the docs / code in https://firebase.john-coene.com/.
I know that this probably the file where this addition/edit should be made: JohnCoene/firebase/blob/master/srcjs/components/oauth.js after this block of code.
Can you advise, am I missing some obvious way of achieving this - or has this functionality yet to be added to the JohnCoene/firebase R package on CRAN?
Thank you very much - great package!
Hi John,
I have an app registration set up on portal.azure.com where I want to only allow users in my organisation's tenant to be able to log into my R Shiny app.
Firebase seems to launch the sign-in popup/redirect with the
common/endpoint by default. I can't seem to find where to change this to use my organisations tenant id.This provides me with an error stating that
Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.Following along the firebase docs for microsoft-oauth I see that after you define a provider
you can then add custom parameters, such as TENANT_ID.
I can't seem to find where I can specify the tenant ID in the docs / code in https://firebase.john-coene.com/.
I know that this probably the file where this addition/edit should be made:
JohnCoene/firebase/blob/master/srcjs/components/oauth.jsafter this block of code.Can you advise, am I missing some obvious way of achieving this - or has this functionality yet to be added to the
JohnCoene/firebaseR package on CRAN?Thank you very much - great package!