Skip to content

ATproto login is broken #1877

@matthieusieben

Description

@matthieusieben

Describe the bug

I tried to "Connect with Bluesky" to like a package then got a redirection error:

401
Unauthorized

OAuth "invalid_client_metadata" error: Unable to obtain client metadata for "https://coc.npmx.dev/oauth-client-metadata.json": unexpected redirect. Please login and try again.

It looks like the OAuth client metadata contains invalid URIs referencing "coc.npmx.dev":

{
  "client_name": "npmx.dev",
  "client_id": "https://coc.npmx.dev/oauth-client-metadata.json",
  "client_uri": "https://coc.npmx.dev",
  "scope": "atproto repo:dev.npmx.feed.like repo:dev.npmx.actor.profile",
  "redirect_uris": ["https://coc.npmx.dev/api/auth/atproto"],
  "grant_types": ["authorization_code", "refresh_token"],
  "application_type": "web",
  "dpop_bound_access_tokens": true,
  "response_types": ["code"],
  "subject_type": "public",
  "authorization_signed_response_alg": "RS256",
  "token_endpoint_auth_method": "private_key_jwt",
  "jwks_uri": "https://coc.npmx.dev/.well-known/jwks.json",
  "token_endpoint_auth_signing_alg": "ES256"
}

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1Priority 1 bug (high)socialSocial features

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions