Skip to content

Fix token & PAR error handling#54

Open
ThisIsMissEm wants to merge 4 commits intoChimeHQ:mainfrom
germ-network:fix/token-error-handling
Open

Fix token & PAR error handling#54
ThisIsMissEm wants to merge 4 commits intoChimeHQ:mainfrom
germ-network:fix/token-error-handling

Conversation

@ThisIsMissEm
Copy link
Contributor

This builds on #50 as I needed the OAuthTypes.swift file. This fixes the error handling for the Authorization Server, but does not fix #53, where we need to look at the WWW-Authenticate header.

This also ensures we clearly signal to the DPoP request method whether we are talking to an authorization server or a resource server (since these give different OAuth Error responses).

The test coverage has increased dramatically here.
This is actually generic OAuth token response logic, but the package is currently structured to make this bluesky specific.
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.

Fix error handling for resource server requests

1 participant