Skip to content

Conversation

@ylebre
Copy link
Member

@ylebre ylebre commented Dec 13, 2025

No description provided.

@ylebre ylebre requested a review from Potherca December 13, 2025 11:12

public static function getRemoteRegistration($url) {
$clientDocument = file_get_contents($url);
$clientRegistration = json_decode($clientDocument, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding JSON_THROW_ON_ERROR so parse errors can be caught instead of failing silently.


class ClientRegistration {
public static function getRegistration($clientId) {
if (preg_match("/^http(s)?:/", $clientId)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should support http without SSL/TLS. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants