@backstage/plugin-auth-backend 0.4.6 → 0.4.10

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,5 +1,63 @@
1
1
  # @backstage/plugin-auth-backend
2
2
 
3
+ ## 0.4.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 4bf4111902: Migrated the SAML provider to implement the `authHandler` and `signIn.resolver` options.
8
+ - b055a6addc: Align on usage of `cross-fetch` vs `node-fetch` in frontend vs backend packages, and remove some unnecessary imports of either one of them
9
+ - 36fa32216f: Added signIn and authHandler resolver for oidc provider
10
+ - 7071dce02d: Expose catalog lib in plugin-auth-backend, i.e `CatalogIdentityClient` class is exposed now.
11
+ - 1b69ed44f2: Added custom OAuth2.0 authorization header for generic oauth2 provider.
12
+ - Updated dependencies
13
+ - @backstage/backend-common@0.9.12
14
+
15
+ ## 0.4.9
16
+
17
+ ### Patch Changes
18
+
19
+ - 9312572360: Switched to using the standardized JSON error responses for all provider endpoints.
20
+ - bab752e2b3: Change default port of backend from 7000 to 7007.
21
+
22
+ This is due to the AirPlay Receiver process occupying port 7000 and preventing local Backstage instances on MacOS to start.
23
+
24
+ You can change the port back to 7000 or any other value by providing an `app-config.yaml` with the following values:
25
+
26
+ ```
27
+ backend:
28
+ listen: 0.0.0.0:7123
29
+ baseUrl: http://localhost:7123
30
+ ```
31
+
32
+ More information can be found here: https://backstage.io/docs/conf/writing
33
+
34
+ - Updated dependencies
35
+ - @backstage/errors@0.1.5
36
+ - @backstage/backend-common@0.9.11
37
+ - @backstage/test-utils@0.1.23
38
+
39
+ ## 0.4.8
40
+
41
+ ### Patch Changes
42
+
43
+ - 892c1d9202: Update OAuthAdapter to create identity.token from identity.idToken if it does not exist, and prevent overwrites to identity.toke. Update login page commonProvider to prefer .token over .idToken
44
+ - Updated dependencies
45
+ - @backstage/catalog-client@0.5.2
46
+ - @backstage/catalog-model@0.9.7
47
+ - @backstage/backend-common@0.9.10
48
+ - @backstage/test-utils@0.1.22
49
+
50
+ ## 0.4.7
51
+
52
+ ### Patch Changes
53
+
54
+ - 5ee31f860b: Only use settings that have a value when creating a new FirestoreKeyStore instance
55
+ - 3e0e2f09d5: Added forwarding of the `audience` option for the SAML provider, making it possible to enable `audience` verification.
56
+ - Updated dependencies
57
+ - @backstage/backend-common@0.9.9
58
+ - @backstage/test-utils@0.1.21
59
+ - @backstage/catalog-client@0.5.1
60
+
3
61
  ## 0.4.6
4
62
 
5
63
  ### Patch Changes
package/README.md CHANGED
@@ -34,7 +34,7 @@ Follow this link, [Create new OAuth App](https://github.com/settings/application
34
34
  1. Set Application Name to `backstage-dev` or something along those lines.
35
35
  1. You can set the Homepage URL to whatever you want to.
36
36
  1. The Authorization Callback URL should match the redirect URI set in Backstage.
37
- 1. Set this to `http://localhost:7000/api/auth/github` for local development.
37
+ 1. Set this to `http://localhost:7007/api/auth/github` for local development.
38
38
  1. Set this to `http://{APP_FQDN}:{APP_BACKEND_PORT}/api/auth/github` for non-local deployments.
39
39
 
40
40
  ```bash
@@ -58,7 +58,7 @@ Follow this link, [Add new application](https://gitlab.com/-/profile/application
58
58
 
59
59
  1. Set Application Name to `backstage-dev` or something along those lines.
60
60
  1. The Authorization Callback URL should match the redirect URI set in Backstage.
61
- 1. Set this to `http://localhost:7000/api/auth/gitlab/handler/frame` for local development.
61
+ 1. Set this to `http://localhost:7007/api/auth/gitlab/handler/frame` for local development.
62
62
  1. Set this to `http://{APP_FQDN}:{APP_BACKEND_PORT}/api/auth/gitlab/handler/frame` for non-local deployments.
63
63
  1. Select the following scopes from the list:
64
64
  - [x] `read_user` Grants read-only access to the authenticated user's profile through the /user API endpoint, which includes username, public email, and full name. Also grants access to read-only API endpoints under /users.
@@ -91,9 +91,9 @@ export AUTH_GITLAB_CLIENT_SECRET=x
91
91
 
92
92
  Add a new Okta application using the following URI conventions:
93
93
 
94
- Login redirect URI's: `http://localhost:7000/api/auth/okta/handler/frame`
95
- Logout redirect URI's: `http://localhost:7000/api/auth/okta/logout`
96
- Initiate login URI's: `http://localhost:7000/api/auth/okta/start`
94
+ Login redirect URI's: `http://localhost:7007/api/auth/okta/handler/frame`
95
+ Logout redirect URI's: `http://localhost:7007/api/auth/okta/logout`
96
+ Initiate login URI's: `http://localhost:7007/api/auth/okta/start`
97
97
 
98
98
  Then configure the following environment variables to be used in the `app-config.yaml` file:
99
99
 
@@ -122,7 +122,7 @@ Click [here](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMe
122
122
  - Give the app a name. e.g. `backstage-dev`
123
123
  - Select `Accounts in this organizational directory only` under supported account types.
124
124
  - Enter the callback URL for your backstage backend instance:
125
- - For local development, this is likely `http://localhost:7000/api/auth/microsoft/handler/frame`
125
+ - For local development, this is likely `http://localhost:7007/api/auth/microsoft/handler/frame`
126
126
  - For non-local deployments, this will be `https://{APP_FQDN}:{APP_BACKEND_PORT}/auth/microsoft/handler/frame`
127
127
  - Click `Register`.
128
128
 
package/config.d.ts CHANGED
@@ -75,6 +75,7 @@ export interface Config {
75
75
  logoutUrl?: string;
76
76
  issuer: string;
77
77
  cert: string;
78
+ audience?: string;
78
79
  privateKey?: string;
79
80
  authnContext?: string[];
80
81
  identifierFormat?: string;