Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jpeach
Copy link
Contributor

@jpeach jpeach commented Sep 30, 2020

Add a basic integration test for an external authorization server. This
ensures that if the authorization server is present, context is propagated
correctly, and authorization can be disabled on routes.

This updates #2717.

Signed-off-by: James Peach [email protected]

@jpeach jpeach force-pushed the integration-auth-basic branch 2 times, most recently from 48710d9 to 20a2522 Compare September 30, 2020 07:23
@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #2955 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2955   +/-   ##
=======================================
  Coverage   75.01%   75.01%           
=======================================
  Files          89       89           
  Lines        5803     5803           
=======================================
  Hits         4353     4353           
  Misses       1355     1355           
  Partials       95       95           

import data.contour.http.response

Response := client.Get({
"url": url.https(sprintf("/first/route/%d", [time.now_ns()])),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be helpful to add a comment somewhere explaining the authserver behavior that's being used here (authorize if path contains allow, otherwise deny)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I added a comment.

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from one request for comments.

Add a basic integration test for an external authorization server. This
ensures that if the authorization server is present, context is propagated
correctly, and authorization can be disabled on routes.

This updates projectcontour#2717.

Signed-off-by: James Peach <[email protected]>
@jpeach jpeach force-pushed the integration-auth-basic branch from 20a2522 to ce9137d Compare October 1, 2020 04:55
@jpeach jpeach merged commit 3c375a6 into projectcontour:main Oct 1, 2020
@jpeach jpeach deleted the integration-auth-basic branch October 1, 2020 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants