add support to include cloudflare groups and implement caching

Signed-off-by: Renlord Yang <renlord@cloudflare.com>
Signed-off-by: Renlord Yang <me@renlord.com>
This commit is contained in:
Renlord Yang
2022-07-14 04:32:44 +00:00
committed by Renlord Yang
parent 3cedfd8365
commit 9dce0535d6
6 changed files with 388 additions and 108 deletions
+14 -1
View File
@@ -97,4 +97,17 @@ installed in `packages/app/src/App.tsx` like this:
+ SignInPage: props => <ProxiedSignInPage {...props} provider="cfaccess" />,
```
See the [Sign-In with Proxy Providers](../index.md#sign-in-with-proxy-providers) section for more information.
## Adding the provider to the Backstage frontend
It is recommended to use the `ProxiedSignInPage` for this provider, which is
installed in `packages/app/src/App.tsx` like this:
```diff
+import { ProxiedSignInPage } from '@backstage/core-components';
const app = createApp({
components: {
+ SignInPage: props => <ProxiedSignInPage {...props} provider="cfaccess" />,
```
See [Sign-In with Proxy Providers](../index.md#sign-in-with-proxy-providers) for pointers on how to set up the sign-in page to also work smoothly for local development.