mirror of
https://github.com/friendica/friendica
synced 2025-04-30 11:04:29 +02:00
27 lines
543 B
PHP
27 lines
543 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Security\OAuth1;
|
|
|
|
class OAuthConsumer
|
|
{
|
|
public $key;
|
|
public $secret;
|
|
public $callback_url;
|
|
|
|
function __construct($key, $secret, $callback_url = null)
|
|
{
|
|
$this->key = $key;
|
|
$this->secret = $secret;
|
|
$this->callback_url = $callback_url;
|
|
}
|
|
|
|
function __toString()
|
|
{
|
|
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
|
|
}
|
|
}
|