-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Direct people to refresh OIDC connection when needed #13126
Open
mkllnk
wants to merge
5
commits into
openfoodfoundation:master
Choose a base branch
from
mkllnk:oidc-error
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Not the best UX but the easiest next step to implement. Next we should: * Include link in error message instead of redirecting straight there. Otherwise users may feel disoriented. * Provide a custom error message?
The colour of the link is really bad though.
The default aqua link colour looked aweful on orange/red background. I tried a few different standard colours but couldn't get it right. So I reverted to the web standard link style: underline. That's looks pretty good. I personally think that we should use the more for links.
dacook
approved these changes
Feb 9, 2025
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.
Great work, thanks for picking this up when I ran out of steam.
I agree with the style update too 👍
rioug
approved these changes
Feb 10, 2025
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 one !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ℹ️ Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code #11678 DFC Orders
What? Why?
@dacook made a really good start on this issue. I tailored the error message to this specific case and wrote a spec covering this.
What should we test?
OidcAccount.where(user_id: 0).update_all(refresh_token: "aaa", updated_at: 1.year.ago)
https://env-0105831.jcloud-ver-jpe.ik-server.com/api/dfc/Enterprises/test-hodmedod/SuppliedProducts
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates
Review comment: The last commit adds a new style for links. Before it was looking like this:
![Screenshot from 2025-02-06 17-10-51](https://private-user-images.githubusercontent.com/3524483/410318074-6b392b17-4f98-4e3f-bf02-c5b121dfbeda.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjI1NTgsIm5iZiI6MTczOTQyMjI1OCwicGF0aCI6Ii8zNTI0NDgzLzQxMDMxODA3NC02YjM5MmIxNy00Zjk4LTRlM2YtYmYwMi1jNWIxMjFkZmJlZGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDQ1MDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODYxZTdlOTJhYTIwODAyN2VhZDg2NWI4NjExODI4MzRiMGNlZDU1MTY1MGJhN2MwYTZkMWQ0N2U0NTE2MWI2NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.kI005_5LZ1Xip9gMeAgTziIa03AfWZDMGeILVWGwsh8)