Skip to content

Fix typo in jwt package - #1070

Merged
peterbourgon merged 5 commits into
go-kit:masterfrom
amidam:master
Jun 19, 2021
Merged

Fix typo in jwt package#1070
peterbourgon merged 5 commits into
go-kit:masterfrom
amidam:master

Conversation

@amidam

@amidam amidam commented Mar 19, 2021

Copy link
Copy Markdown
Contributor
* change JWTTokenContextKey to JWTContextKey

* revise errors as well as comments

    * change JWTTokenContextKey to JWTContextKey

    * revise errors as well as comments
@amidam

amidam commented Mar 19, 2021

Copy link
Copy Markdown
Contributor Author

fixes #1071

Comment thread auth/jwt/middleware.go Outdated
	* revert the API identifier to its previous value

        * add JWTTokenContextKey side by side of JWTContextKey for historical compatibility
@amidam
amidam requested a review from peterbourgon March 20, 2021 14:19
@peterbourgon

Copy link
Copy Markdown
Member

Can you please leave the old identifiers in place, and mark them as deprecated?

Amid added 2 commits June 2, 2021 21:54
	* define JWTContextKey as a new constant

        * mark JWTTokenContextKey as a deprecated constant

        * revise corresponding error messages
@amidam

amidam commented Jun 2, 2021

Copy link
Copy Markdown
Contributor Author

Can you please leave the old identifiers in place, and mark them as deprecated?

I have done it already. I added a new constant called JWTContextKey and marked JWTTokenContextKey as a deprecated constant.

@amidam

amidam commented Jun 2, 2021

Copy link
Copy Markdown
Contributor Author

Can you please leave the old identifiers in place, and mark them as deprecated?

I have done it already. I added a new constant called JWTContextKey and marked JWTTokenContextKey as a deprecated constant.

Still they both have the same value

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

One minor thing then 👍

Comment thread auth/jwt/middleware.go Outdated
	* define JWTContextKey as a new constant

        * mark JWTTokenContextKey as a deprecated constant

        * revise corresponding error messages
@amidam

amidam commented Jun 2, 2021

Copy link
Copy Markdown
Contributor Author

One minor thing then +1

I have done it.

@amidam
amidam requested a review from peterbourgon June 2, 2021 22:36

@sagikazarmark sagikazarmark 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

@sagikazarmark sagikazarmark mentioned this pull request Jun 19, 2021
@peterbourgon
peterbourgon merged commit a5c7103 into go-kit:master Jun 19, 2021
@sagikazarmark sagikazarmark added this to the v0.11.0 milestone Jun 19, 2021
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.

3 participants