Skip to content

Chore/tidy operator token#124

Merged
kangmingtay merged 3 commits into
masterfrom
chore/tidy_operator_token
Jul 8, 2021
Merged

Chore/tidy operator token#124
kangmingtay merged 3 commits into
masterfrom
chore/tidy_operator_token

Conversation

@awalias
Copy link
Copy Markdown
Member

@awalias awalias commented Jun 29, 2021

purpose is to remove operator token from non-multi-instance deployments

Comment thread api/middleware.go
p := jwt.Parser{ValidMethods: []string{jwt.SigningMethodHS256.Name}}
_, err := p.ParseWithClaims(signature, &claims, func(token *jwt.Token) (interface{}, error) {
return []byte(a.config.OperatorToken), nil
return []byte(config.JWT.Secret), nil
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

actually not needed since we're not utilizing multi-instance mode anyway

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.

yeah but i think we may need it in the future when we move gotrue to multi-tenant 😅

@awalias
Copy link
Copy Markdown
Member Author

awalias commented Jun 29, 2021

tested locally with facebook, twitter, google, and invite

@awalias awalias requested a review from kangmingtay June 29, 2021 06:33
Comment thread api/middleware.go
@kangmingtay kangmingtay merged commit f51a7a8 into master Jul 8, 2021
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 8, 2021

🎉 This PR is included in version 1.10.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
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.

2 participants