# OAuth2 Authorization Code Flow

**URL:** <https://community.particle.io/t/oauth2-authorization-code-flow/22215>\
**Category:** Cloud\
**Created:** [April 18, 2016, 5:01pm UTC](https://community.particle.io/t/oauth2-authorization-code-flow/22215 "2016-04-18T17:01:24Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![harrisonhjones](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/harrisonhjones/32/4132_2.png) [@harrisonhjones](https://community.particle.io/u/harrisonhjones)\
**Post date:** [February 7, 2017, 4:58pm UTC](https://community.particle.io/t/oauth2-authorization-code-flow/22215/13 "2017-02-07T16:58:24Z")

</div>

You need to **generate** OAuth client Ids and secrets to get this to work. I’m not sure why that information is missing from the docs. You can find it [here](https://github.com/spark/docs/blob/d756ec6afc73eb5c485d2194354c2147073ccf4c/src/content/reference/api.md#create-an-oauth-client). Let me know if you have any trouble

**Note: When you create your client Id and secret make sure you use the `web` type**

---

_[View the full topic](https://community.particle.io/t/oauth2-authorization-code-flow/22215)._
