Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification of top-level domains buggy #3649

Open
TheOneWithTheBraid opened this issue Dec 9, 2024 · 1 comment
Open

Verification of top-level domains buggy #3649

TheOneWithTheBraid opened this issue Dec 9, 2024 · 1 comment
Labels
A-Client-Registration Related to OIDC Dynamic Client Registration A-Spec-Compliance Divergence from the Matrix or the OAuth 2.0/OIDC specifications T-Defect Something isn't working

Comments

@TheOneWithTheBraid
Copy link

I encountered a funny bug : if your top-level domain is too long, your redirect URI is automatically rejected. In my case, business.braid.polycule: was considered as an invalid URI scheme - even though .business obviously is a top-level domain.

I'd highly suggest to remove that buggy check.

if host.len() <= suffix.as_bytes().len() + 1 {

@sandhose
Copy link
Member

sandhose commented Jan 6, 2025

The following registration works:

{
  "client_uri": "https://polycule.braid.business/",
  "grant_types": ["refresh_token", "authorization_code"],
  "application_type": "native",
  "redirect_uris": ["business.braid.polycule:/"],
  "token_endpoint_auth_method": "none"
}

Two important things to note:

So, either we clarify MSC2966 to require a single slash in native schemes, or we fix the implementation

@sandhose sandhose added A-Client-Registration Related to OIDC Dynamic Client Registration T-Defect Something isn't working A-Spec-Compliance Divergence from the Matrix or the OAuth 2.0/OIDC specifications labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Registration Related to OIDC Dynamic Client Registration A-Spec-Compliance Divergence from the Matrix or the OAuth 2.0/OIDC specifications T-Defect Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants