Skip to content

Commit

Permalink
Remove the service account key and revoke access
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Jul 22, 2015
1 parent d6faa76 commit f153b5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ python_modules

# Built files
public/

# Private keys
service-account-key.json
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ npm run build
path/to/dev_appserver.py .
```

If you're wanting to run any of the server-side authorization demos you'll also need to create a service account, add the private JSON key to your project's root directory, and name it `service-account-key.json`. You can follow the instructions described in the [Server-side Authorization demo](https://ga-dev-tools.appspot.com/embed-api/server-side-authorization/) for more details.

Now you should be able to load [http://localhost:8080/](http://localhost:8080/) in your browser and see the site. (Note, the client ID associated with this project has the origin `localhost:8080` whitelisted. If you load the site on another port, authentication may not work property.)

If you're running App Engine on Windows or Mac, you can use the App Engine Launcher GUI to run the site as an alternative to running the above command.

To have your system watch for changes and automatically rebuild the source files, you can run `npm run watch` in place of the `npm run build` command shown above.

7 changes: 0 additions & 7 deletions service-account-key.json

This file was deleted.

2 changes: 1 addition & 1 deletion templates/embed-api/server-side-authorization.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>Step 1: Create a service account and download the JSON key</h3>

<p>Once the service account is created, you can click the <strong>Generate New JSON Key</strong> button to create and download the key and add it to your project.</p>

<p class="Message"><strong>IMPORTANT:</strong> make sure to store your JSON key file privately and securely. This reposity includes the JSON key for demonstration purposes only. Normally you should not check your key file into a public repository.</p>
<p class="Message"><strong>Important!</strong>&nbsp; Make sure to store your JSON key file privately and securely. Do not check it in to a public repository or store it on a public server.</p>

<h3>Step 2: Add the service account as a user in Google Analytics</h3>

Expand Down

0 comments on commit f153b5c

Please sign in to comment.