Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
Added configuration for Misfit provider
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Dec 2, 2014
1 parent c62575d commit c3e2a28
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/OAuth2/Provider/Misfit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php

namespace OAuth2\Provider;

use OAuth2\Provider;
use OAuth2\Token_Access;

/*
* Misfit API credentials: https://build.misfit.com/apps
* Misfit API docs: https://build.misfit.com/docs
*/


/**
* Misfit OAuth Provider
*
* @package laravel-oauth2
* @category Provider
* @author Hannes Van De Vreken
*/

class Misfit extends Provider {
/**
* @var string provider name
*/
public $name = 'misfit';

/**
* @var string the method to use when requesting tokens
*/
protected $method = 'POST';

/**
* Returns the authorization URL for the provider.
*
* @return string
*/
public function url_authorize()
{
return 'https://api.misfitwearables.com/auth/dialog/authorize';
}

/**
* Returns the access token endpoint for the provider.
*
* @return string
*/
public function url_access_token()
{
return 'https://api.misfitwearables.com/auth/tokens/exchange';
}
}

0 comments on commit c3e2a28

Please sign in to comment.