| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | /** |
| 6: | * This file is part of the Nexus MCP SDK package. |
| 7: | * |
| 8: | * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com> |
| 9: | * |
| 10: | * For the full copyright and license information, please view |
| 11: | * the LICENSE file that was distributed with this source code. |
| 12: | */ |
| 13: | |
| 14: | namespace Nexus\Mcp\Core\Auth; |
| 15: | |
| 16: | /** |
| 17: | * The OpenID Connect application type a client declares during Dynamic Client Registration, which decides |
| 18: | * the redirect URIs an OIDC-aware authorization server will accept. |
| 19: | * |
| 20: | * @see https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata |
| 21: | */ |
| 22: | enum ApplicationType: string |
| 23: | { |
| 24: | /** |
| 25: | * Desktop applications, mobile apps, CLI tools, and locally-hosted applications reached over loopback. |
| 26: | */ |
| 27: | case Native = 'native'; |
| 28: | |
| 29: | /** |
| 30: | * Remote browser-based applications served from a non-local host. |
| 31: | */ |
| 32: | case Web = 'web'; |
| 33: | } |
| 34: |