You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Are you sure that you know how OAuth works with respect to the client secret? I think it's reasonable to include it, with some obfuscation methods, in an app binary. I would not, however, rely on the client credentials grant type for a mobile app.RibaldEddie– RibaldEddie2017-07-10 22:08:16 +00:00Commented Jul 10, 2017 at 22:08
- 1@RibaldEddie Yes I am sure but you are free to cross-check my information. security by obscurity is not security. You're not keeping the secret safe through obfuscation. To understand whether or not it's reasonable to include it you have to make your own assessment, it's your risk calculation to make, but I would personally never include it in any way or form. See also the answer Jacob Hull referred to.Robzor– Robzor2017-07-11 07:46:20 +00:00Commented Jul 11, 2017 at 7:46
- Not everything that is a "secret key" is the same. A secret API key is not the same as a "client secret" in the context of OAuth. The alternative is no or a blank secret and in the context of an OAuth client that is a native app, I would say it's better to have a random value as a secret than none at all. The only caveat is to be aware of the different grant types and to ensure that you have the ability to limit the authorized grant types on a per client basis and not to allow the use of any grant type such that the client key and secret are exclusively sufficient for gaining access.RibaldEddie– RibaldEddie2017-07-12 21:35:53 +00:00Commented Jul 12, 2017 at 21:35
- 1I think it's pretty clear that a native mobile app available through an App Store is a legitimate use of a secret and Id. In combination with a password grant it seems very reasonable.RibaldEddie– RibaldEddie2017-07-13 02:27:58 +00:00Commented Jul 13, 2017 at 2:27
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you