-
I was wondering, how safe is it to store the OAuth client secret (and perhaps also the client ID) in plain text in Maybe I'm overthinking it, but I like to err on the side of caution in cases like this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's harmless but confusing. There are two kinds of OAuth client, public clients and confidential clients. It's expected the "secrets" of public clients such as native apps are non-confidential https://datatracker.ietf.org/doc/html/rfc8252#section-8.5
For this reason, enlightened servers allow public clients to authenticate with just client id, omitting the secret:
You can omit client secret when authenticating to GitLab or Gitea hickford/git-credential-oauth#17 |
Beta Was this translation helpful? Give feedback.
It's harmless but confusing. There are two kinds of OAuth client, public clients and confidential clients. It's expected the "secrets" of public clients such as native apps are non-confidential https://datatracker.ietf.org/doc/html/rfc8252#section-8.5
For this reason, enlightened servers allow public clients to authenticate with just client id, omitting the secret: