aetah/oidc-http-based-logout 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aetah/oidc-http-based-logout

Composer 安装命令:

composer require aetah/oidc-http-based-logout

包简介

Generic PHP library implementing OpenID Connect HTTP-Based Logout 1.0 processing helpers

README 文档

README

This repository is a read-only split of aetah/php-openid-toolkit.

  • Development happens in the monorepo.
  • Feature PRs and issues should be opened against aetah/php-openid-toolkit.
  • This split repository is published from the monorepo and should not be treated as the source of truth.

OIDC Http Based Logout

Generic PHP library for OpenID Connect HTTP-Based Logout 1.0 processing primitives.

Scope

This package is designed as a reusable base for aetah/* libraries and CMS integrations. It provides:

  • End Session request parsing for OpenID Connect logout parameters.
  • End Session request validation helpers for id_token_hint, client_id, and post_logout_redirect_uri combinations.
  • End Session endpoint URL builder for RP-initiated logout redirects.
  • Post-logout redirect URL builder with optional state.

The package intentionally leaves ID Token signature verification, OP session management, and HTTP endpoint orchestration to host applications.

Install

composer require aetah/oidc-http-based-logout

Quick Start

<?php

declare(strict_types=1);

use Aetah\OIDCHttpBasedLogout\OIDCHttpBasedLogout;

$logout = new OIDCHttpBasedLogout();

$request = $logout->parseEndSessionRequest($_GET);
$logout->validateEndSessionRequest($request, ['https://rp.example/post-logout']);

Spec

OpenID Connect HTTP-Based Logout 1.0 (draft 04): https://openid.net/specs/openid-connect-logout-1_0-04.html

Spec Status

Missing/out of scope:

  • ID Token signature and claim verification.
  • OP cookie/session invalidation workflows.
  • User-agent redirect execution and HTTP runtime endpoint orchestration.
  • Dynamic OP/RP metadata retrieval and registration lifecycle behavior.

Quality Checks

Run Static Analysis

composer analyse

Run Tests

composer test

Generated artifacts are written under build/:

  • build/phpunit/ for JUnit reports
  • build/coverage/ for coverage output

Clean Build Artifacts

composer clean

Run Test Coverage

composer test:coverage

Run Style Checks

composer lint

Fix Style Checks

composer lint:fix

License

Licensed under AGPL-3.0-or-later. See LICENSE for details.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2026-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固