Skip to content

[7.x] [New platform] HTTP & Security integration (#34631)#35181

Merged
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-34631
Apr 16, 2019
Merged

[7.x] [New platform] HTTP & Security integration (#34631)#35181
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-34631

Conversation

@mshustov
Copy link
Contributor

@mshustov mshustov commented Apr 16, 2019

Backport of #34631

@mshustov mshustov added the backport This PR is a backport of another PR label Apr 16, 2019
* Add Auth session

* add lifecycles

* add types for hapi-auth-cookie

* expose interceptors from http service

* add integration tests

* update tests

* session storage cleanup

* get SessionStorage type safe

* add redirect, clear cookie security integration tests

* add tests for onRequest

* add tests for onAuth

* register Auth interceptor only once

* refactor redirect tests

* fix typings, change error message, test suit naming

* add integration test for session validation

* add tests for cookie session storage

* update docs

* add integration tests for onRequest

* update docs

* cleanup onRequest integration tests

* Generate docs for AuthToolkit & OnRequestToolkit

* add test for an exception in interceptor

* add test OnRequest interceptors dont share request object

* cleanup

* address comments from @eli

* improve typings for onRequest

* improve plugin typings

* re-generate docs

* only server defines cookie path

* cookieOptions.password --> cookieOptions.encryptionKey

* CookieOption --> SessionStorageCookieOptions

* address comments @joshdover

* resolve conflict leftovers

* update @types/hapi-auth-cookie deps

* update docs
@mshustov mshustov force-pushed the backport/7.x/pr-34631 branch from cc65db4 to 61850c0 Compare April 16, 2019 19:36
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov mshustov merged commit 69c5551 into elastic:7.x Apr 16, 2019
@mshustov mshustov deleted the backport/7.x/pr-34631 branch April 16, 2019 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants