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

Provide a user-friendly error if oauth params are incorrect #435

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

alastair
Copy link
Collaborator

@alastair alastair commented Jun 7, 2022

An invalid client id, mismatching redirect uri, or bad scope resulted in
an unhandled HTTP500 error, as the exception raised is only handled in
the API app, not the website app.
Catch and re-raise this exception so that it is properly handled.

Update db.oauth_client.create to actually return a dictionary as
documented, this is needed for the test.

alastair added 2 commits June 7, 2022 18:45
An invalid client id, mismatching redirect uri, or bad scope resulted in
an unhandled HTTP500 error, as the exception raised is only handled in
the API app, not the website app.
Catch and re-raise this exception so that it is properly handled.

Update db.oauth_client.create to actually return a dictionary as
documented, this is needed for the test.
@alastair alastair requested a review from amCap1712 June 7, 2022 16:48
Copy link
Member

@amCap1712 amCap1712 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks@

@github-actions

This comment has been minimized.

@alastair alastair merged commit fb1d597 into master Jun 7, 2022
@alastair alastair deleted the mismatch-oauth-url branch June 7, 2022 17:08
@github-actions
Copy link

github-actions bot commented Jun 7, 2022

Unit Test Results

    1 files  ±0      1 suites  ±0   1m 37s ⏱️ ±0s
171 tests ±0  171 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit fb1d597. ± Comparison against base commit fb1d597.

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.

2 participants