@backstage/plugin-auth-backend 0.17.0-next.0 → 0.17.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 +18 -0
- package/dist/index.cjs.js +28 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ declare type OAuthRefreshRequest = express.Request<{}> & {
|
|
|
110
110
|
scope: string;
|
|
111
111
|
refreshToken: string;
|
|
112
112
|
};
|
|
113
|
+
/** @public */
|
|
114
|
+
declare type OAuthLogoutRequest = express.Request<{}> & {
|
|
115
|
+
refreshToken: string;
|
|
116
|
+
};
|
|
113
117
|
/**
|
|
114
118
|
* Any OAuth provider needs to implement this interface which has provider specific
|
|
115
119
|
* handlers for different methods to perform authentication, get access tokens,
|
|
@@ -139,7 +143,7 @@ interface OAuthHandlers {
|
|
|
139
143
|
/**
|
|
140
144
|
* (Optional) Sign out of the auth provider.
|
|
141
145
|
*/
|
|
142
|
-
logout?(): Promise<void>;
|
|
146
|
+
logout?(req: OAuthLogoutRequest): Promise<void>;
|
|
143
147
|
}
|
|
144
148
|
|
|
145
149
|
/**
|
|
@@ -437,6 +441,7 @@ declare class OAuthAdapter implements AuthProviderRouteHandlers {
|
|
|
437
441
|
private populateIdentity;
|
|
438
442
|
private setNonceCookie;
|
|
439
443
|
private setGrantedScopeCookie;
|
|
444
|
+
private getRefreshTokenFromCookie;
|
|
440
445
|
private getGrantedScopeFromCookie;
|
|
441
446
|
private setRefreshTokenCookie;
|
|
442
447
|
private removeRefreshTokenCookie;
|
|
@@ -954,4 +959,4 @@ declare class CatalogIdentityClient {
|
|
|
954
959
|
*/
|
|
955
960
|
declare function getDefaultOwnershipEntityRefs(entity: Entity): string[];
|
|
956
961
|
|
|
957
|
-
export { AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, CatalogIdentityClient, CloudflareAccessClaims, CloudflareAccessGroup, CloudflareAccessIdentityProfile, CloudflareAccessResult, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthAdapterOptions, OAuthEnvironmentHandler, OAuthHandlers, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthStartResponse, OAuthState, OidcAuthResult, ProfileInfo, ProviderFactories, RouterOptions, SamlAuthResult, SignInInfo, SignInResolver, StateEncoder, TokenParams, WebMessageResponse, createAuthProviderIntegration, createOriginFilter, createRouter, defaultAuthProviderFactories, encodeState, ensuresXRequestedWith, getDefaultOwnershipEntityRefs, postMessageResponse, prepareBackstageIdentityResponse, providers, readState, verifyNonce };
|
|
962
|
+
export { AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, CatalogIdentityClient, CloudflareAccessClaims, CloudflareAccessGroup, CloudflareAccessIdentityProfile, CloudflareAccessResult, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthAdapterOptions, OAuthEnvironmentHandler, OAuthHandlers, OAuthLogoutRequest, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthStartResponse, OAuthState, OidcAuthResult, ProfileInfo, ProviderFactories, RouterOptions, SamlAuthResult, SignInInfo, SignInResolver, StateEncoder, TokenParams, WebMessageResponse, createAuthProviderIntegration, createOriginFilter, createRouter, defaultAuthProviderFactories, encodeState, ensuresXRequestedWith, getDefaultOwnershipEntityRefs, postMessageResponse, prepareBackstageIdentityResponse, providers, readState, verifyNonce };
|
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.17.0-next.
|
|
4
|
+
"version": "0.17.0-next.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"clean": "backstage-cli package clean"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-common": "^0.15.2-next.
|
|
36
|
-
"@backstage/catalog-client": "^1.1.1-next.
|
|
37
|
-
"@backstage/catalog-model": "^1.1.2-next.
|
|
38
|
-
"@backstage/config": "^1.0.3-next.
|
|
39
|
-
"@backstage/errors": "^1.1.2-next.
|
|
40
|
-
"@backstage/plugin-auth-node": "^0.2.6-next.
|
|
35
|
+
"@backstage/backend-common": "^0.15.2-next.1",
|
|
36
|
+
"@backstage/catalog-client": "^1.1.1-next.1",
|
|
37
|
+
"@backstage/catalog-model": "^1.1.2-next.1",
|
|
38
|
+
"@backstage/config": "^1.0.3-next.1",
|
|
39
|
+
"@backstage/errors": "^1.1.2-next.1",
|
|
40
|
+
"@backstage/plugin-auth-node": "^0.2.6-next.1",
|
|
41
41
|
"@backstage/types": "^1.0.0",
|
|
42
42
|
"@davidzemon/passport-okta-oauth": "^0.0.5",
|
|
43
43
|
"@google-cloud/firestore": "^6.0.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"yn": "^4.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@backstage/backend-test-utils": "^0.1.29-next.
|
|
80
|
-
"@backstage/cli": "^0.20.0-next.
|
|
79
|
+
"@backstage/backend-test-utils": "^0.1.29-next.1",
|
|
80
|
+
"@backstage/cli": "^0.20.0-next.1",
|
|
81
81
|
"@types/body-parser": "^1.19.0",
|
|
82
82
|
"@types/cookie-parser": "^1.4.2",
|
|
83
83
|
"@types/express-session": "^1.17.2",
|