@backstage/plugin-auth-backend 0.15.0-next.2 → 0.15.0-next.3
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 +17 -0
- package/dist/index.cjs.js +8 -1
- package/dist/index.cjs.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
+
## 0.15.0-next.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fe8e025af5: Allowed post method on /refresh path
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- a70869e775: Updated dependency `msw` to `^0.43.0`.
|
|
12
|
+
- 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
|
|
13
|
+
- 3a014730dc: Add new config option for okta auth server and IDP
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @backstage/backend-common@0.14.1-next.3
|
|
16
|
+
- @backstage/catalog-client@1.0.4-next.2
|
|
17
|
+
- @backstage/plugin-auth-node@0.2.3-next.2
|
|
18
|
+
- @backstage/catalog-model@1.1.0-next.3
|
|
19
|
+
|
|
3
20
|
## 0.15.0-next.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -22,7 +22,7 @@ var passportGoogleOauth20 = require('passport-google-oauth20');
|
|
|
22
22
|
var passportMicrosoft = require('passport-microsoft');
|
|
23
23
|
var pluginAuthNode = require('@backstage/plugin-auth-node');
|
|
24
24
|
var openidClient = require('openid-client');
|
|
25
|
-
var passportOktaOauth = require('passport-okta-oauth');
|
|
25
|
+
var passportOktaOauth = require('@davidzemon/passport-okta-oauth');
|
|
26
26
|
var passportOneloginOauth = require('passport-onelogin-oauth');
|
|
27
27
|
var passportSaml = require('passport-saml');
|
|
28
28
|
var catalogClient = require('@backstage/catalog-client');
|
|
@@ -1911,6 +1911,8 @@ class OktaAuthProvider {
|
|
|
1911
1911
|
clientSecret: options.clientSecret,
|
|
1912
1912
|
callbackURL: options.callbackUrl,
|
|
1913
1913
|
audience: options.audience,
|
|
1914
|
+
authServerID: options.authServerId,
|
|
1915
|
+
idp: options.idp,
|
|
1914
1916
|
passReqToCallback: false,
|
|
1915
1917
|
store: this.store,
|
|
1916
1918
|
response_type: "code"
|
|
@@ -1979,6 +1981,8 @@ const okta = createAuthProviderIntegration({
|
|
|
1979
1981
|
const clientId = envConfig.getString("clientId");
|
|
1980
1982
|
const clientSecret = envConfig.getString("clientSecret");
|
|
1981
1983
|
const audience = envConfig.getString("audience");
|
|
1984
|
+
const authServerId = envConfig.getOptionalString("authServerId");
|
|
1985
|
+
const idp = envConfig.getOptionalString("idp");
|
|
1982
1986
|
const customCallbackUrl = envConfig.getOptionalString("callbackUrl");
|
|
1983
1987
|
const callbackUrl = customCallbackUrl || `${globalConfig.baseUrl}/${providerId}/handler/frame`;
|
|
1984
1988
|
if (!audience.startsWith("https://")) {
|
|
@@ -1989,6 +1993,8 @@ const okta = createAuthProviderIntegration({
|
|
|
1989
1993
|
});
|
|
1990
1994
|
const provider = new OktaAuthProvider({
|
|
1991
1995
|
audience,
|
|
1996
|
+
authServerId,
|
|
1997
|
+
idp,
|
|
1992
1998
|
clientId,
|
|
1993
1999
|
clientSecret,
|
|
1994
2000
|
callbackUrl,
|
|
@@ -2724,6 +2730,7 @@ async function createRouter(options) {
|
|
|
2724
2730
|
}
|
|
2725
2731
|
if (provider.refresh) {
|
|
2726
2732
|
r.get("/refresh", provider.refresh.bind(provider));
|
|
2733
|
+
r.post("/refresh", provider.refresh.bind(provider));
|
|
2727
2734
|
}
|
|
2728
2735
|
router.use(`/${providerId}`, r);
|
|
2729
2736
|
} catch (e) {
|