惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
量子位
博客园 - 叶小钗
AI
AI
T
Tor Project blog
Forbes - Security
Forbes - Security
W
WeLiveSecurity
博客园_首页
爱范儿
爱范儿
J
Java Code Geeks
B
Blog
G
GRAHAM CLULEY
aimingoo的专栏
aimingoo的专栏
Cloudbric
Cloudbric
C
CXSECURITY Database RSS Feed - CXSecurity.com
TaoSecurity Blog
TaoSecurity Blog
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
有赞技术团队
有赞技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Simon Willison's Weblog
Simon Willison's Weblog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
H
Help Net Security
博客园 - 三生石上(FineUI控件)
C
Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园 - 司徒正美
The Last Watchdog
The Last Watchdog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
S
Secure Thoughts
Spread Privacy
Spread Privacy
F
Fortinet All Blogs
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Security Latest
Security Latest
Webroot Blog
Webroot Blog
Scott Helme
Scott Helme
Hugging Face - Blog
Hugging Face - Blog

Feed of "schmarty/gem-diamond"

issue when using indieauth[dot]com? gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond proxy for profile images gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond gem-diamond
gem-diamond
schmarty · 2025-01-26 · via Feed of "schmarty/gem-diamond"

共有 2 个文件被更改,包括 6 次插入22 次删除

@ -20,7 +20,9 @@ class IndieAuthController extends \Schmarty\Micropubkit\IndieAuthController {
return $this->error_redirect('missing_url', 'Website URL is required');
}
list($authorizationURL, $error) = \IndieAuth\Client::begin($params['me'], $this->scopes);
$url = \IndieAuth\Client::normalizeMeURL($params['me']);
list($authorizationURL, $error) = \IndieAuth\Client::begin($url, $this->scopes);
if($error) {
// use indielogin instead
@ -30,20 +32,15 @@ class IndieAuthController extends \Schmarty\Micropubkit\IndieAuthController {
$codeVerifier = \IndieAuth\Client::generatePKCECodeVerifier();
// set up session info so \IndieAuth\Client can find it later
$_SESSION['indieauth_entered_url'] = $params['me'];
$_SESSION['indieauth_entered_url'] = $url;
$_SESSION['indieauth_state'] = $state;
$_SESSION['indieauth_code_verifier'] = $codeVerifier;
$_SESSION['indieauth_authorization_endpoint'] = 'https://indielogin.com/auth';
// HACK 2024-08-25: indielogin.com maybe only has our old client_id
$clientId = \IndieAuth\Client::$clientID;
$u = parse_url($clientId);
\IndieAuth\Client::$clientID = $u['scheme'] . '://' . $u['host'] . '/';
$authorizationURL = \IndieAuth\Client::buildAuthorizationURL(
"https://indielogin.com/auth",
[
'me' => $params['me'],
'me' => $url,
'redirect_uri' => \IndieAuth\Client::$redirectURL,
'client_id' => \IndieAuth\Client::$clientID,
'code_verifier' => $codeVerifier,
@ -56,17 +53,4 @@ class IndieAuthController extends \Schmarty\Micropubkit\IndieAuthController {
return $this->response->withHeader('Location', $authorizationURL)->withStatus(302);
}
// FIXME: remove this once indielogin.com allows https://xn--sr8hvo.ws/auth/id client ID
public function login_callback(ServerRequestInterface $request): ResponseInterface {
if ($_SESSION['indieauth_authorization_endpoint'] === 'https://indielogin.com/auth')
{
// HACK 2024-08-25: indielogin.com maybe only has our old client_id
$clientId = \IndieAuth\Client::$clientID;
$u = parse_url($clientId);
\IndieAuth\Client::$clientID = $u['scheme'] . '://' . $u['host'] . '/';
}
return parent::login_callback($request);
}
}

@ -9,7 +9,7 @@ use Monolog\Handler\StreamHandler;
// set up logger
$logDest = getenv('LOGFILE');
$logDest = $logDest ? $logDest : 'php://stdin';
$logDest = $logDest ? $logDest : 'php://stdout';
$logger = new Logger('🕸️💍✀🌿');
$logger->pushHandler(new StreamHandler($logDest));