PR Feedback

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
This commit is contained in:
Alex Crome
2023-02-14 14:50:37 +00:00
parent aa721158d1
commit b84349e2f6
4 changed files with 9 additions and 19 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const authProviderFactories = {
'azure-easyAuth': providers.easyAuth.create({
'azure-easyauth': providers.easyAuth.create({
signIn: {
resolver: async (info, ctx) => {
const {
@@ -52,7 +52,7 @@ export default async function createPlugin(
```
Now the backend is ready to serve auth requests on the
`/api/auth/azure-easyAuth/refresh` endpoint. All that's left is to update the frontend
`/api/auth/azure-easyauth/refresh` endpoint. All that's left is to update the frontend
sign-in mechanism to poll that endpoint through the IAP, on the user's behalf.
## Frontend Changes
@@ -65,7 +65,7 @@ installed in `packages/app/src/App.tsx` like this:
const app = createApp({
components: {
+ SignInPage: props => <ProxiedSignInPage {...props} provider="azure-easyAuth" />,
+ SignInPage: props => <ProxiedSignInPage {...props} provider="azure-easyauth" />,
```
See the [Sign-In with Proxy Providers](../index.md#sign-in-with-proxy-providers) section for more information.