Skip to content

Security implications of storing OAuth client ID in config.json? #7

Answered by dorelljames
gpoole asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the kind remarks!

I've had great ideas when I started working on this plugin but the primary reason why it didn't push through is because of this very concern you're asking me right now. To be honest, I agree that it's better to keep the OAuth Client Id as a secret as possible and not publicly accessible say for example you can read its value from the config file of your Sanity repo when it's set to public. But even then if it's private and we're going to use sanity-studio-secrets as per your suggestion, you can actually be able to read the value of it given the right endpoint and api parameters via GROQ to query such value if your dataset is to public.

At the time when I creat…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gpoole
Comment options

@gpoole
Comment options

Answer selected by dorelljames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on November 03, 2021 08:36.