@backstage/plugin-auth-backend 0.0.0-nightly-20220927025940 → 0.0.0-nightly-20220929030122

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/plugin-auth-backend
2
2
 
3
- ## 0.0.0-nightly-20220927025940
3
+ ## 0.0.0-nightly-20220929030122
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -13,14 +13,38 @@
13
13
 
14
14
  ### Patch Changes
15
15
 
16
+ - 8c6ec175bf: Fix GitLab provider setup so that it supports GitLab installations with a path in the URL.
16
17
  - Updated dependencies
17
- - @backstage/catalog-model@0.0.0-nightly-20220927025940
18
- - @backstage/catalog-client@0.0.0-nightly-20220927025940
19
- - @backstage/backend-common@0.0.0-nightly-20220927025940
20
- - @backstage/config@0.0.0-nightly-20220927025940
21
- - @backstage/errors@0.0.0-nightly-20220927025940
18
+ - @backstage/catalog-model@0.0.0-nightly-20220929030122
19
+ - @backstage/catalog-client@0.0.0-nightly-20220929030122
20
+ - @backstage/backend-common@0.0.0-nightly-20220929030122
21
+ - @backstage/plugin-auth-node@0.0.0-nightly-20220929030122
22
+ - @backstage/config@0.0.0-nightly-20220929030122
23
+ - @backstage/errors@0.0.0-nightly-20220929030122
24
+ - @backstage/types@1.0.0
25
+
26
+ ## 0.17.0-next.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 5fa831ce55: CookieConfigurer can optionally return the `SameSite` cookie attribute.
31
+ CookieConfigurer now requires an additional argument `appOrigin` - the origin URL of the app - which is used to calculate the `SameSite` attribute.
32
+ defaultCookieConfigurer returns the `SameSite` attribute which defaults to `Lax`. In cases where an auth-backend is running on a different domain than the App, `SameSite=None` is used - but only for secure contexts. This is so that cookies can be included in third-party requests.
33
+
34
+ OAuthAdapterOptions has been modified to require additional arguments, `baseUrl`, and `cookieConfigurer`.
35
+ OAuthAdapter now resolves cookie configuration using its supplied CookieConfigurer for each request to make sure that the proper attributes always are set.
36
+
37
+ ### Patch Changes
38
+
39
+ - 8c6ec175bf: Fix GitLab provider setup so that it supports GitLab installations with a path in the URL.
40
+ - Updated dependencies
41
+ - @backstage/catalog-model@1.1.2-next.0
42
+ - @backstage/catalog-client@1.1.1-next.0
43
+ - @backstage/backend-common@0.15.2-next.0
44
+ - @backstage/plugin-auth-node@0.2.6-next.0
45
+ - @backstage/config@1.0.3-next.0
46
+ - @backstage/errors@1.1.2-next.0
22
47
  - @backstage/types@1.0.0
23
- - @backstage/plugin-auth-node@0.0.0-nightly-20220927025940
24
48
 
25
49
  ## 0.16.0
26
50
 
package/dist/index.cjs.js CHANGED
@@ -1570,7 +1570,10 @@ class GitlabAuthProvider {
1570
1570
  clientID: options.clientId,
1571
1571
  clientSecret: options.clientSecret,
1572
1572
  callbackURL: options.callbackUrl,
1573
- baseURL: options.baseUrl
1573
+ baseURL: options.baseUrl,
1574
+ authorizationURL: `${options.baseUrl}/oauth/authorize`,
1575
+ tokenURL: `${options.baseUrl}/oauth/token`,
1576
+ profileURL: `${options.baseUrl}/api/v4/user`
1574
1577
  },
1575
1578
  (accessToken, refreshToken, params, fullProfile, done) => {
1576
1579
  done(