Skip to content

fix: always attempt external auth refresh when fetching (#11762) - #11830

Merged
Emyrk merged 1 commit into
mainfrom
stevenmasley/external_auth_refresh_2
Jan 29, 2024
Merged

Emyrk merged 1 commit into
mainfrom
stevenmasley/external_auth_refresh_2

Conversation

@Emyrk

@Emyrk Emyrk commented Jan 26, 2024

Copy link
Copy Markdown
Member
  • fix: always attempt external auth refresh when fetching
  • refactor validate to check expiry when considering "valid"

Original: #11762
Revert: 79568bf

Reported error

Using github as login.

{"message":"Internal error fetching authenticated Github user organizations.","detail":"GET https://api.github.com/user/memberships/orgs?per_page=100\u0026state=active: 401 Bad credentials []"}

I cannot reproduce this, nor do I see how this commit affects listing github user organizations.

@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

✔️ PR 11830 Updated successfully.
🚀 Access the credentials here.

cc: @Emyrk

@Emyrk
Emyrk marked this pull request as ready for review January 26, 2024 16:16
* fix: always attempt external auth refresh when fetching
* refactor validate to check expiry when considering "valid"
@Emyrk
Emyrk force-pushed the stevenmasley/external_auth_refresh_2 branch from 5b0d243 to c872363 Compare January 26, 2024 16:39
@Emyrk

Emyrk commented Jan 29, 2024

Copy link
Copy Markdown
Member Author

No 401s detected (as originally reported) since this has been on dogfood (Jan 26)

Screenshot from 2024-01-29 08-51-08

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

dogfood was left running with this commit over the weekend and we were not able to reproduce the issue. I don't believe this commit was related to the issues we saw.

@Emyrk
Emyrk merged commit d66e6e7 into main Jan 29, 2024
@Emyrk
Emyrk deleted the stevenmasley/external_auth_refresh_2 branch January 29, 2024 14:55
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants