From 38e787a0e8104f3cfe6dc390427ba28839bd52a5 Mon Sep 17 00:00:00 2001 From: Robbert van Markus Date: Mon, 31 Jul 2023 20:04:23 +0200 Subject: [PATCH 1/2] fixed oauth2proxy configuration example Signed-off-by: Robbert van Markus --- docs/auth/oauth2-proxy/provider.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/auth/oauth2-proxy/provider.md b/docs/auth/oauth2-proxy/provider.md index 9c8f681138..3e0d3237a2 100644 --- a/docs/auth/oauth2-proxy/provider.md +++ b/docs/auth/oauth2-proxy/provider.md @@ -20,8 +20,10 @@ The provider configuration can be added to your `app-config.yaml` under the root ```yaml title="app-config.yaml" auth: + environment: development providers: - oauth2Proxy: {} + oauth2Proxy: + development: {} ``` Right now no configuration options are supported, but the empty object is needed From d9b78b24348ca3bb8a69f89718622dce0587d885 Mon Sep 17 00:00:00 2001 From: Robbert van Markus Date: Mon, 31 Jul 2023 20:48:54 +0200 Subject: [PATCH 2/2] add link to full example without a matching user Signed-off-by: Robbert van Markus --- docs/auth/oauth2-proxy/provider.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/auth/oauth2-proxy/provider.md b/docs/auth/oauth2-proxy/provider.md index 3e0d3237a2..5cff655c02 100644 --- a/docs/auth/oauth2-proxy/provider.md +++ b/docs/auth/oauth2-proxy/provider.md @@ -60,6 +60,8 @@ providerFactories: { }, ``` +[An example on how to sign a user in without a matching user](https://github.com/backstage/backstage/blob/master/packages/backend/src/plugins/auth.ts) + ## Adding the provider to the Backstage frontend It is recommended to use the `ProxiedSignInPage` for this provider, which is