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

Improve oauth glue #915

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Improve oauth glue #915

merged 1 commit into from
Feb 4, 2024

Conversation

jwag956
Copy link
Collaborator

@jwag956 jwag956 commented Feb 4, 2024

Some providers e.g. Azure require the redirect URL to match exactly - including query params etc. To support that we now store any 'next' value in the session (fs_oauth_next).

To enable better debugging a class that can be subclassed for each provider - the auth_response_error() method can be subclassed for better debugging/UX.

Convert our Github and Google pre-defined providers to the new class method.

Add support for Azure in the Oauth example code.

Change OAUTH_HANDSHAKE_ERROR to include info from authlib.

closes #912

Copy link

codecov bot commented Feb 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f568cae) 98.39% compared to head (4d42bae) 98.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #915      +/-   ##
==========================================
+ Coverage   98.39%   98.40%   +0.01%     
==========================================
  Files          34       35       +1     
  Lines        4474     4508      +34     
==========================================
+ Hits         4402     4436      +34     
  Misses         72       72              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jwag956 jwag956 force-pushed the oauthazure branch 2 times, most recently from 338448a to 1b20447 Compare February 4, 2024 20:45
Some providers e.g. Azure require the redirect URL to match exactly - including query params etc. To support that
we now store any 'next' value in the session (fs_oauth_next).

To enable better debugging a class that can be subclassed for each provider - the auth_response_error() method can be subclassed for better debugging/UX.

Convert our Github and Google pre-defined providers to the new class method.

Add support for Azure in the Oauth example code.

Change OAUTH_HANDSHAKE_ERROR to include info from authlib.

closes #912
@jwag956 jwag956 merged commit 0b971c1 into master Feb 4, 2024
19 checks passed
@jwag956 jwag956 deleted the oauthazure branch February 4, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Improve oauth debugging
1 participant