Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Add an optional authentication mode for HTTP resources (#58589) #59614

Merged
merged 1 commit into from
Mar 7, 2020

Commits on Mar 7, 2020

  1. Add an optional authentication mode for HTTP resources (elastic#58589)

    * add authRequred: 'optional'
    
    * expose auth status via request context
    
    * update security plugin to use notHandled auth outcome
    
    * capabilities service uses optional auth
    
    * update tests
    
    * attach security headers only to unauthorised response
    
    * add isAuthenticated tests for 'optional' auth mode
    
    * security plugin relies on http.auth.isAuthenticated to calc capabilities
    
    * generate docs
    
    * reword test suit names
    
    * update tests
    
    * update test checking isAuth on optional auth path
    
    * address Oleg comments
    
    * add test for auth: try
    
    * fix
    
    * pass isAuthenticted as boolean via context
    
    * remove response header from notHandled
    
    * update docs
    
    * add redirected for auth interceptor
    
    * security plugin uses t.redirected to be compat with auth: optional
    
    * update docs
    
    * require location header in the interface
    
    * address comments #1
    
    * declare isAuthenticated on KibanaRequest
    
    * remove auth.isAuthenticated from scope
    
    * update docs
    
    * remove unnecessary comment
    
    * do not fail on FakrRequest
    
    * small improvements
    mshustov committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    203a413 View commit details
    Browse the repository at this point in the history