Git Product home page Git Product logo

oauth2-client-php's Introduction

OAuth 2.0 Client for PHP

You can read all about OAuth2 at the standard.

Tests

Running the full suite of code quality tools plus tests can be done via the following, which is the same command as Travis runs:

make -k ci

Specific commands for subsets of the full suite can be found in the Makefile.

Grant types

Supported

Not supported

Prerequisites

This library requires PHP 5.5 or later.

Use Composer to add this project to your project's dependencies.

Documentation

Further documentation is in docs.

How to contribute

See Contributing

License

This library is licensed under the Apache-2.0 License. Enjoy!

oauth2-client-php's People

Contributors

yitznewton avatar dazz avatar glaubinix avatar till avatar rwos avatar naderman avatar

Stargazers

sasezaki avatar

Watchers

Isam avatar  avatar Darshan Somashekar avatar Brian Wiborg avatar  avatar James Cloos avatar

Forkers

yitznewton

oauth2-client-php's Issues

client_secret (if defined) is passed as a parameter to authorization URL

If a client has set a client_secret in their ClientConfig object, when getAuthorizerUrl() builds the authorization URL from clientConfig->getParams(), the client_secret is added to the parameter list. This exposes the client_secret to users of the client when they are sent to an OAuth2 authorization endpoint. The client_secret should only be added to a request to an OAuth2 token endpoint.

protected function getAuthorizeUrl()
{
$params = [
'response_type' => 'code',
'state' => $this->stateStore->getState(),
] + $this->clientConfig->getParams();

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.