Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add faking 429 responses from fake idp#12365

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 1 commit intomainfromstevenmasley/test-idp-429
Feb 29, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedFeb 29, 2024
edited
Loading

Created this so I can reproduce a 429 issue in the FE:#11570 (comment)

Example run:go run ./scripts/testidp/main.go --device-flow --429=device

Required to trigger error condition in fe
Comment on lines +247 to +255
typeWith429Argumentsstruct {
AllPathsbool
TokenPathbool
AuthorizePathbool
KeysPathbool
UserInfoPathbool
DeviceAuthbool
DeviceVerifybool
}
Copy link
Member

Choose a reason for hiding this comment

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

idea: just supply a number of RegExes to match the given paths? That way you can reuse it however you like. But this is probably fine though.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yea, that would work too. I think this is fine though. It's so niche. I just made it to reproduce this:#12367

Felt like I should just throw it in a PR. If someone wants to improve this later, they can. We could also replace the bool with a number and return 500s etc.

🤷

@EmyrkEmyrk merged commitcbcf4ef intomainFeb 29, 2024
@EmyrkEmyrk deleted the stevenmasley/test-idp-429 branchFebruary 29, 2024 15:45
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 29, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp