Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codevate/public-api-blog-post-example
A companion project for our blog post describing how to secure public APIs client-side.
https://github.com/codevate/public-api-blog-post-example
api-security oauth2 oauth2-server php public-api symfony-api symfony-application symfony2
Last synced: 4 months ago
JSON representation
A companion project for our blog post describing how to secure public APIs client-side.
- Host: GitHub
- URL: https://github.com/codevate/public-api-blog-post-example
- Owner: Codevate
- Created: 2016-07-04T20:23:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T14:40:50.000Z (over 7 years ago)
- Last Synced: 2024-10-13T06:04:24.828Z (4 months ago)
- Topics: api-security, oauth2, oauth2-server, php, public-api, symfony-api, symfony-application, symfony2
- Language: PHP
- Homepage: https://www.codevate.com/blog/12-securing-client-side-public-api-access-with-oauth-2-and-symfony
- Size: 53.7 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Public OAuth API
A companion Symfony project for our blog post on securing client-side public API access with OAuth 2 and Symfony.
## Getting started
Install dependencies:
```
composer install
```Create the database and setup the schema:
```
php app/console doctrine:database:create --if-not-exists
php app/console doctrine:schema:update --force
```Create a new company in the database, then generate an OAuth client:
```
php app/console app:oauth-client:create
```Create a new restaurant in the database, then generate a hashid for it:
```
php app/console app:restaurant:encode-id
```Start the server:
```
php app/console server:run
```Then follow the "Calling the API" section in the blog post.
## About Codevate
Codevate is a specialist [UK mobile app development company](https://www.codevate.com/) that builds cloud-connected software. This repository was created for a blog post about a [custom web application development](https://www.codevate.com/services/web-development) project and was written by [Chris Lush](https://github.com/lushc).