@backstage/plugin-auth-backend 0.9.0-next.0 → 0.9.0-next.1
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 +9 -0
- package/dist/index.cjs.js +74 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ declare type OAuthState = {
|
|
|
103
103
|
nonce: string;
|
|
104
104
|
env: string;
|
|
105
105
|
origin?: string;
|
|
106
|
+
scope?: string;
|
|
106
107
|
};
|
|
107
108
|
declare type OAuthStartRequest = express.Request<{}> & {
|
|
108
109
|
scope: string;
|
|
@@ -498,6 +499,7 @@ declare class OAuthAdapter implements AuthProviderRouteHandlers {
|
|
|
498
499
|
private readonly handlers;
|
|
499
500
|
private readonly options;
|
|
500
501
|
static fromConfig(config: AuthProviderConfig, handlers: OAuthHandlers, options: Pick<Options, 'providerId' | 'persistScopes' | 'disableRefresh' | 'tokenIssuer' | 'callbackUrl'>): OAuthAdapter;
|
|
502
|
+
private readonly baseCookieOptions;
|
|
501
503
|
constructor(handlers: OAuthHandlers, options: Options);
|
|
502
504
|
start(req: express.Request, res: express.Response): Promise<void>;
|
|
503
505
|
frameHandler(req: express.Request, res: express.Response): Promise<void>;
|
|
@@ -509,8 +511,8 @@ declare class OAuthAdapter implements AuthProviderRouteHandlers {
|
|
|
509
511
|
*/
|
|
510
512
|
private populateIdentity;
|
|
511
513
|
private setNonceCookie;
|
|
512
|
-
private
|
|
513
|
-
private
|
|
514
|
+
private setGrantedScopeCookie;
|
|
515
|
+
private getGrantedScopeFromCookie;
|
|
514
516
|
private setRefreshTokenCookie;
|
|
515
517
|
private removeRefreshTokenCookie;
|
|
516
518
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend",
|
|
3
3
|
"description": "A Backstage backend plugin that handles authentication",
|
|
4
|
-
"version": "0.9.0-next.
|
|
4
|
+
"version": "0.9.0-next.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"clean": "backstage-cli clean"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@backstage/backend-common": "^0.10.
|
|
33
|
+
"@backstage/backend-common": "^0.10.6-next.0",
|
|
34
34
|
"@backstage/catalog-client": "^0.5.5",
|
|
35
35
|
"@backstage/catalog-model": "^0.9.10",
|
|
36
36
|
"@backstage/config": "^0.1.13",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"yn": "^4.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@backstage/cli": "^0.13.1-next.
|
|
77
|
-
"@backstage/test-utils": "^0.2.
|
|
76
|
+
"@backstage/cli": "^0.13.1-next.1",
|
|
77
|
+
"@backstage/test-utils": "^0.2.4-next.0",
|
|
78
78
|
"@types/body-parser": "^1.19.0",
|
|
79
79
|
"@types/cookie-parser": "^1.4.2",
|
|
80
80
|
"@types/express-session": "^1.17.2",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"config.d.ts"
|
|
95
95
|
],
|
|
96
96
|
"configSchema": "config.d.ts",
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "d6da97a1edeb21fcefc682d91916987ba9f3d89a"
|
|
98
98
|
}
|