Skip to content

oauth2 filter: saving id_token and refresh_token in the cookie if they are provided - #18353

Merged
snowp merged 7 commits into
envoyproxy:mainfrom
Alexcei88:oauth2_saving_additional_tokens
Nov 4, 2021
Merged

snowp merged 7 commits into
envoyproxy:mainfrom
Alexcei88:oauth2_saving_additional_tokens

Conversation

@Alexcei88

Copy link
Copy Markdown
Contributor

Commit Message:
oauth2 filter: saving id_token and refresh_token in the cookie if they are provided
Additional Description:
#17808
Risk Level:
Testing:
Docs Changes:

Need to update doc about oath2_filter. The filter will send over cookies BearerToken, IdToken, RefreshToken to the upstream
https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/oauth2_filter

Release Notes:

oauth2: handling IdToken, RefreshToken fields if they are provided by IDP provider

Platform Specific Features:

@repokitteh-read-only

Copy link
Copy Markdown

Hi @Alexcei88, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #18353 was opened by Alexcei88.

see: more, trace.

@snowp

snowp commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

@rgs1 I see you offered to review this, wanna take this one? :)

@mattklein123

Copy link
Copy Markdown
Member

Needs a DCO fix. cc @snowp to review.

/wait

@rgs1

rgs1 commented Oct 6, 2021

Copy link
Copy Markdown
Member

@rgs1 I see you offered to review this, wanna take this one? :)

Yup I can look.

/assign rgs1

@rgs1 rgs1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Mind adding a change log entry in docs/root/version_history/current.rst and a note in docs/root/configuration/http/http_filters/oauth2_filter.rst as well?

@rgs1

rgs1 commented Oct 7, 2021

Copy link
Copy Markdown
Member

@Alexcei88 can you fix the merge conflict please?

@Alexcei88

Copy link
Copy Markdown
Contributor Author

Could you help me, how to fix this error
RSTChecker ERROR [current_version] (docs/root/version_history/current.rst:40) Version history line malformed. Does not match VERSION_HISTORY_NEW_LINE_REGEX

@phlax

phlax commented Oct 7, 2021

Copy link
Copy Markdown
Member

Could you help me, how to fix this error

can you merge main, version history has changed since release, so best do that first

@phlax

phlax commented Oct 7, 2021

Copy link
Copy Markdown
Member

@Alexcei88

all non-binary files need to have

  • no trailing whitespace
  • a newline at the end (not necessarily blank line)
  • no mixed tabs/spaces

strong recommendation is to fix your editor so it does these automatically on save

rgs1
rgs1 previously approved these changes Oct 8, 2021

@rgs1 rgs1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with an additional nit - thanks!

@snowp or @fishcakez or @williamsfu99 -- over to one of you to do a final pass.

@snowp snowp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks this LGTM. Can you merge main?

/wait

@snowp

snowp commented Oct 27, 2021

Copy link
Copy Markdown
Contributor

Can you look at CI/DCO for this one?

/wait

Shmakov Aleksey added 5 commits November 2, 2021 20:42
…y are provided

(cherry picked from commit 88089c719a87081dcc9f6ce413cef696b3c00a56)
Signed-off-by: Shmakov Aleksey <[email protected]>
Signed-off-by: Shmakov Aleksey <[email protected]>
Signed-off-by: Shmakov Aleksey <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #18353 was synchronize by Alexcei88.

see: more, trace.

@jamesmulcahy

Copy link
Copy Markdown
Contributor

This is great, we needed similar functionality. Thanks @Alexcei88 -- I appreciate the contribution and am looking forward to seeing it merged!

@Alexcei88

Alexcei88 commented Nov 4, 2021 •

Copy link
Copy Markdown
Contributor Author

Guys, I am sorry, but is there a chance to speed up PR? It needs for our current project.

@snowp snowp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants