{"id":167,"date":"2025-04-03T08:39:27","date_gmt":"2025-04-03T08:39:27","guid":{"rendered":"https:\/\/documentation.iqonic.design\/streamit-laravel\/?p=167"},"modified":"2026-02-25T10:21:07","modified_gmt":"2026-02-25T10:21:07","slug":"how-to-create-a-google-cloud-project-enable-oauth","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/streamit-laravel\/how-to-create-a-google-cloud-project-enable-oauth\/","title":{"rendered":"How to Create a Google Cloud Project &amp; Enable OAuth?"},"content":{"rendered":"<div class=\"nolwrap\">\n<h3 class=\"wp-block-heading\"><strong>Create a Google Cloud Project &amp; Enable OAuth<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the Google Cloud Console.<\/li>\n\n\n\n<li>Create a new project or select an existing one.<\/li>\n\n\n\n<li>Navigate to&nbsp;<strong>APIs &amp; Services<\/strong>&nbsp;\u2192&nbsp;<strong>Credentials<\/strong>.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Create Credentials<\/strong>&nbsp;\u2192&nbsp;<strong>OAuth Client ID<\/strong>.<\/li>\n\n\n\n<li>Configure the consent screen:\n<ul class=\"wp-block-list\">\n<li>Select&nbsp;<strong>External<\/strong>&nbsp;(if targeting multiple users) or&nbsp;<strong>Internal<\/strong>&nbsp;(if only for your organization).<\/li>\n\n\n\n<li>Fill in app details (App name, logo, domain, privacy policy, etc.).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Choose&nbsp;<strong>Application type<\/strong>&nbsp;\u2192&nbsp;<strong>Web Application<\/strong>&nbsp;(or Android\/iOS if applicable).<\/li>\n\n\n\n<li>Add\u00a0<strong>Authorized Redirect URIs<\/strong>\u00a0(e.g.,\u00a0<code>http:\/\/localhost:3000\/auth\/google\/callback<\/code>\u00a0for development).<\/li>\n\n\n\n<li>Click&nbsp;<strong>Create<\/strong>, then save your&nbsp;<strong>Client ID<\/strong>&nbsp;and&nbsp;<strong>Client Secret<\/strong>.<\/li>\n\n\n\n<li>Add the credentials in .env file<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">GOOGLE_ACTIVE=true<br>GOOGLE_CLIENT_ID=<br>GOOGLE_CLIENT_SECRET=<br>GOOGLE_REDIRECT_URI=<\/pre>\n\n\n\n<p><strong>Note: <\/strong>Put <strong>Client ID <\/strong>as <strong>Public Key<\/strong> &amp; <strong>Client Secret<\/strong> as <strong>Secret Key<\/strong><\/p>\n\n\n\n<p><strong>Client ID \u2192 Public Key<\/strong><\/p>\n\n\n\n<p><strong>Client Secret \u2192 Secret Key<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Create a Google Cloud Project &amp; Enable OAuth GOOGLE_ACTIVE=trueGOOGLE_CLIENT_ID=GOOGLE_CLIENT_SECRET=GOOGLE_REDIRECT_URI= Note: Put Client ID as Public Key &amp; Client Secret as Secret Key Client ID \u2192 Public Key Client Secret \u2192 Secret Key<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/streamit-laravel\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":5,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":1812,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/posts\/167\/revisions\/1812"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/posts\/165"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-laravel\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}