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
fail if external oauth service lacks required oauth_redirect_uri #4555
Conversation
and log service creation with oauth enabled/disabled
@@ -2501,6 +2501,11 @@ def service_from_orm( | |||
if orm_service.oauth_client is not None: | |||
service.oauth_client_id = orm_service.oauth_client.identifier | |||
service.oauth_redirect_uri = orm_service.oauth_client.redirect_uri | |||
oauth_msg = f"with ouath_client_id={orm_service.oauth_client.identifier}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
- avoid empty values - replace single check for redirect_uri with broader _oauth_specified
7a7a11f
to
550dec4
Compare
Just tested, works ok! Thanks @minrk! |
@meeseeksdev backport to 4.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
and log service creation with oauth enabled/disabled
closes #4551