Coder Social home page Coder Social logo

geraldoandradee / phalcon-api-oauth2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goors/phalcon-api-oauth2

0.0 1.0 0.0 1.05 MB

Full phalcon rest api example with is own Oauth2 server - moved to https://murphy.rs/nikola/phalcon_api_oauth2

ApacheConf 1.49% PHP 98.51%

phalcon-api-oauth2's Introduction

phalcon-api-ouath2

This repo containts php oauth2-server auth with ready to use phalcon reset api that supports post, put, delete, get, options, patch methods. In reset api there is only few routes and one controller as example.

This repo is made by combining:

Reason for this is to have both things in one place (this works for me).

How to use:

  1. Get access token with api.domain.com/access?client_id=id&client_secret=secret

  2. With access token just access you api method api.domain.com/method?token=token from 1)

  3. Also you different formats:

    • xml -> api.domain.com/method?token=token&format=xml or api.domain.com/method.xml?token=token

    • json is supported by default

  4. Update app/config/config.php with your own stuff

TODO: Add oauth2 scope and static html page for allow/deny like Google oauth2 or Facebook oauth.

Enjoy and do not forgot to run sql file vendor/league/oauth-server/sql/mysql.sql for oauth2! For any questions/suggestions please check my profile page and send me email.

phalcon-api-oauth2's People

Contributors

goors avatar

Watchers

Geraldo Andrade avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.