Skip to content

Commit

Permalink
Remove deprecated & unused HttpServiceSetup.auth (#127056)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
afharo and kibanamachine authored Mar 9, 2022
1 parent 133e57f commit 565454c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 37 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async (context, request, response) => {

| Property | Type | Description |
| --- | --- | --- |
| [auth](./kibana-plugin-core-server.httpservicesetup.auth.md) | HttpAuth | Auth status. See [HttpAuth](./kibana-plugin-core-server.httpauth.md) |
| [basePath](./kibana-plugin-core-server.httpservicesetup.basepath.md) | IBasePath | Access or manipulate the Kibana base path See [IBasePath](./kibana-plugin-core-server.ibasepath.md)<!-- -->. |
| [createCookieSessionStorageFactory](./kibana-plugin-core-server.httpservicesetup.createcookiesessionstoragefactory.md) | &lt;T&gt;(cookieOptions: SessionStorageCookieOptions&lt;T&gt;) =&gt; Promise&lt;SessionStorageFactory&lt;T&gt;&gt; | Creates cookie based session storage factory [SessionStorageFactory](./kibana-plugin-core-server.sessionstoragefactory.md) |
| [createRouter](./kibana-plugin-core-server.httpservicesetup.createrouter.md) | &lt;Context extends RequestHandlerContext = RequestHandlerContext&gt;() =&gt; IRouter&lt;Context&gt; | Provides ability to declare a handler function for a particular path and HTTP request method. |
Expand Down
4 changes: 0 additions & 4 deletions src/core/server/http/http_service.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ const createSetupContractMock = () => {
csp: CspConfig.DEFAULT,
createRouter: jest.fn(),
registerRouteHandlerContext: jest.fn(),
auth: {
get: internalMock.auth.get,
isAuthenticated: internalMock.auth.isAuthenticated,
},
getServerInfo: internalMock.getServerInfo,
};

Expand Down
8 changes: 0 additions & 8 deletions src/core/server/http/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,6 @@ export interface HttpServiceSetup {
*/
basePath: IBasePath;

/**
* Auth status.
* See {@link HttpAuth}
*
* @deprecated use {@link HttpServiceStart.auth | the start contract} instead.
*/
auth: HttpAuth;

/**
* The CSP config used for Kibana.
*/
Expand Down
4 changes: 0 additions & 4 deletions src/core/server/plugins/plugin_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ export function createPluginSetupContext<TPlugin, TPluginDependencies>(
registerOnPostAuth: deps.http.registerOnPostAuth,
registerOnPreResponse: deps.http.registerOnPreResponse,
basePath: deps.http.basePath,
auth: {
get: deps.http.auth.get,
isAuthenticated: deps.http.auth.isAuthenticated,
},
csp: deps.http.csp,
getServerInfo: deps.http.getServerInfo,
},
Expand Down
2 changes: 0 additions & 2 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,6 @@ export interface HttpServicePreboot {

// @public
export interface HttpServiceSetup {
// @deprecated
auth: HttpAuth;
basePath: IBasePath;
createCookieSessionStorageFactory: <T>(cookieOptions: SessionStorageCookieOptions<T>) => Promise<SessionStorageFactory<T>>;
createRouter: <Context extends RequestHandlerContext = RequestHandlerContext>() => IRouter<Context>;
Expand Down

0 comments on commit 565454c

Please sign in to comment.