Skip to content

Update error message handling for OIDC#21297

Merged
ahmedhamidawan merged 4 commits intogalaxyproject:devfrom
uwwint:feature/oidc_error_handling
Nov 24, 2025
Merged

Update error message handling for OIDC#21297
ahmedhamidawan merged 4 commits intogalaxyproject:devfrom
uwwint:feature/oidc_error_handling

Conversation

@uwwint
Copy link
Copy Markdown
Contributor

@uwwint uwwint commented Nov 14, 2025

Change OIDC error handling. In case error_description is provided to the callback render that message to the user instead of the default text in Galaxy. Also update the UI to kick the user back to the login screen with the usual error handling

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. configure an OIDC provider
    2. login with a user into the OIDC provider which triggers an error
    3. Observe the error is shown on the login screen. if the callback parameter error_description is not provided, the standard galaxy message is shown.

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.
Screenshot 2025-11-14 at 13 47 57

@github-actions github-actions Bot added this to the 26.0 milestone Nov 14, 2025
@uwwint
Copy link
Copy Markdown
Contributor Author

uwwint commented Nov 16, 2025

Hi @nuwang @bgruening,

can you help with getting this UX improvement in?

Kind Regards,
Uwe

Copy link
Copy Markdown
Member

@nuwang nuwang left a comment

Choose a reason for hiding this comment

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

Server side changes look ok to me, thanks @uwwint. Have left some minor comments. @ahmedhamidawan Would you be able to review front-end changes please?

Comment thread lib/galaxy/webapps/galaxy/controllers/authnz.py Outdated
Comment thread client/src/components/Login/LoginForm.vue Outdated
@ahmedhamidawan ahmedhamidawan changed the title update error message handling for OIDC Update error message handling for OIDC Nov 18, 2025
@ahmedhamidawan
Copy link
Copy Markdown
Member

Server side changes look ok to me, thanks @uwwint. Have left some minor comments. @ahmedhamidawan Would you be able to review front-end changes please?

Thank you @nuwang and @uwwint , I can run this locally and test out several use cases. It might take me towards the end of the week because of the Galaxy Team Meeting right now.

@ahmedhamidawan ahmedhamidawan self-requested a review November 22, 2025 20:58
@ahmedhamidawan ahmedhamidawan force-pushed the feature/oidc_error_handling branch from 9feed6c to 3477af1 Compare November 22, 2025 21:07
Copy link
Copy Markdown
Member

@ahmedhamidawan ahmedhamidawan left a comment

Choose a reason for hiding this comment

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

Client changes look good to me!

@uwwint please run the following commands to lint the backend before you commit your changes:

% make format && tox -e lint && tox -e mypy

And the following for client side changes:

% cd client && yarn run prettier --check
% cd client && yarn run eslint

@uwwint
Copy link
Copy Markdown
Contributor Author

uwwint commented Nov 24, 2025

@ahmedhamidawan will do next time - I understand that this has already been run on this branch, correct?

I created fast pre-commit hooks in this branch of my own: https://github.com/uwwint/galaxy/tree/feature/pre-commit

not sure this is something the project would like. But if they do, I am happy to PR it.

@ahmedhamidawan
Copy link
Copy Markdown
Member

@uwwint Yes, these changes are linted now
I shared a link to that pre-commit commit in the backend channel, if anyone's interested, thanks!

@ahmedhamidawan ahmedhamidawan merged commit 500672a into galaxyproject:dev Nov 24, 2025
59 of 63 checks passed
@galaxyproject galaxyproject deleted a comment from github-actions Bot Nov 24, 2025
@nuwang
Copy link
Copy Markdown
Member

nuwang commented Nov 24, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants