@backstage/create-app 0.0.0-nightly-20220502025029 → 0.0.0-nightly-20220503024657
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @backstage/create-app
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20220503024657
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -44,9 +44,21 @@
|
|
|
44
44
|
+*.local.yaml
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
- 7b253072c6: Tweaked template to provide an example and guidance for how to configure sign-in in `packages/backend/src/plugins/auth.ts`. There is no need to add this to existing apps, but for more information about sign-in configuration, see https://backstage.io/docs/auth/identity-resolver.
|
|
47
48
|
- cfc0f19699: Updated dependency `fs-extra` to `10.1.0`.
|
|
48
49
|
- 344ea56acc: Bump `commander` to version 9.1.0
|
|
49
50
|
- 806427545f: Added a link to the `${GITHUB_TOKEN}` to document how to generate a token
|
|
51
|
+
- d41f19ca2a: Bumped the `typescript` version in the template to `~4.6.4`.
|
|
52
|
+
|
|
53
|
+
To apply this change to an existing app, make the following change to the root `package.json`:
|
|
54
|
+
|
|
55
|
+
```diff
|
|
56
|
+
dependencies: {
|
|
57
|
+
...
|
|
58
|
+
- "typescript": "~4.5.4"
|
|
59
|
+
+ "typescript": "~4.6.4"
|
|
60
|
+
},
|
|
61
|
+
```
|
|
50
62
|
|
|
51
63
|
## 0.4.27-next.0
|
|
52
64
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createRouter,
|
|
3
|
+
providers,
|
|
4
|
+
defaultAuthProviderFactories,
|
|
5
|
+
} from '@backstage/plugin-auth-backend';
|
|
2
6
|
import { Router } from 'express';
|
|
3
7
|
import { PluginEnvironment } from '../types';
|
|
4
8
|
|
|
@@ -11,5 +15,22 @@ export default async function createPlugin(
|
|
|
11
15
|
database: env.database,
|
|
12
16
|
discovery: env.discovery,
|
|
13
17
|
tokenManager: env.tokenManager,
|
|
18
|
+
providerFactories: {
|
|
19
|
+
...defaultAuthProviderFactories,
|
|
20
|
+
|
|
21
|
+
// This overrides the default GitHub auth provider with a custom one.
|
|
22
|
+
// Since the options are empty it will behave just like the default
|
|
23
|
+
// provider, but if you uncomment the `signIn` section you will enable
|
|
24
|
+
// sign-in via GitHub. This particular configuration uses a resolver
|
|
25
|
+
// that matches the username to the user entity name. See the auth
|
|
26
|
+
// documentation for more details on how to enable and customize sign-in:
|
|
27
|
+
//
|
|
28
|
+
// https://backstage.io/docs/auth/identity-resolver
|
|
29
|
+
github: providers.github.create({
|
|
30
|
+
// signIn: {
|
|
31
|
+
// resolver: providers.github.resolvers.usernameMatchingUserEntityName(),
|
|
32
|
+
// },
|
|
33
|
+
}),
|
|
34
|
+
},
|
|
14
35
|
});
|
|
15
36
|
}
|