rowy
rowy copied to clipboard
Enable auth config in .env
When using authentication with Microsoft and your MS app is configured to for single tenant only, you must pass tenant and clientId via customParameters to firebseui.
Currently, there is no way to extend authOptions defined in firebaseui.ts.
As a work around I have modified authOptions like:
microsoft: {
provider: "microsoft.com",
loginHintKey: "login_hint",
...(process.env.REACT_APP_MS_AUTH_TENANT && process.env.REACT_APP_MS_AUTH_CLIENT_ID ? {
customParameters: {
tenant: process.env.REACT_APP_MS_AUTH_TENANT,
clientId: process.env.REACT_APP_MS_AUTH_CLIENT_ID
}
} : undefined)
}
I am keen to submit a PR for this, but think my solution is a bit hacked in. If you could consider a better way to implement such a feature, I am more than happy to refactor it and submit a PR
Cheers
Hi @cjsewell, we are open for PR. Feel free to contribute and let us know when it's ready for review. Thank you.