Skip to content

#390 - Kong Discovery JWT expiration - #394

Merged
vladyslav-fenchak merged 16 commits into
0.7.0from
issue-390-kong-discovery-jwt-expiration
Apr 21, 2022
Merged

vladyslav-fenchak merged 16 commits into
0.7.0from
issue-390-kong-discovery-jwt-expiration

Conversation

@vladyslav-fenchak

Copy link
Copy Markdown
Contributor

No description provided.

@vladyslav-fenchak vladyslav-fenchak added the enhancement New feature or request label Apr 19, 2022
@vladyslav-fenchak vladyslav-fenchak self-assigned this Apr 19, 2022
@vladyslav-fenchak vladyslav-fenchak linked an issue Apr 19, 2022 that may be closed by this pull request
vladyslav-fenchak and others added 3 commits April 19, 2022 15:28
…discovery-jwt-expiration

Restyle #390 - Kong Discovery JWT expiration

@garciparedes garciparedes 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.

Hi @vladyslav-fenchak, awesome changes! Could you resolve the comments I left around the PR?

Comment thread packages/plugins/minos-discovery-kong/minos/plugins/kong/client.py Outdated
Comment thread packages/plugins/minos-discovery-kong/minos/plugins/kong/client.py Outdated
) -> str:
payload = {"iss": key, "exp": exp, "nbf": nbf}

current = datetime.now(tz=utc)

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.

You can use minos.common.current_datetime instead of directly generating a timezone based datetime by your own.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

Comment thread packages/plugins/minos-discovery-kong/minos/plugins/kong/discovery.py Outdated

@garciparedes garciparedes 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.

Hi @vladyslav-fenchak, now it LGTM!

@vladyslav-fenchak
vladyslav-fenchak merged commit 6dc0e18 into 0.7.0 Apr 21, 2022
@vladyslav-fenchak
vladyslav-fenchak deleted the issue-390-kong-discovery-jwt-expiration branch April 21, 2022 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

3 participants