Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

oidc: Don't require to run refresh on provider init#64159

Merged
eseliger merged 1 commit into
mainfrom
es/07-30-choreremoveunnecessary_imports_split
Aug 8, 2024
Merged

oidc: Don't require to run refresh on provider init#64159
eseliger merged 1 commit into
mainfrom
es/07-30-choreremoveunnecessary_imports_split

Conversation

@eseliger

@eseliger eseliger commented Jul 30, 2024

Copy link
Copy Markdown
Member

This PR makes the calls to create the OIDC provider explicit, so that we don't need to implicitly need to call a Refresh method, even if we might end up not needing the p.oidc.
This is a start toward being able to create providers on the fly cheaply vs having a globally managed list of providers in memory.

We did call refresh everywhere we do now anyways to the best of my understanding, so a passive goroutine in the background to my best understanding didn't add a lot here.

Test plan: Auth with SAMS locally still works.

@cla-bot cla-bot Bot added the cla-signed label Jul 30, 2024
This was referenced Jul 30, 2024

eseliger commented Jul 30, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 30, 2024
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch 2 times, most recently from 0c19436 to e202d74 Compare July 31, 2024 01:47
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 5583dd0 to ac276f3 Compare July 31, 2024 01:47
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from e202d74 to 2877663 Compare July 31, 2024 02:25
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from ac276f3 to 5027a47 Compare July 31, 2024 02:25
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from 2877663 to 89ad79a Compare July 31, 2024 02:36
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 5027a47 to 9d452b8 Compare July 31, 2024 02:36
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from 89ad79a to 330db23 Compare August 4, 2024 15:53
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 9d452b8 to 86a96cd Compare August 4, 2024 15:53
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from 330db23 to 6ab8518 Compare August 4, 2024 17:01
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 86a96cd to 7380af5 Compare August 4, 2024 17:02
@eseliger eseliger marked this pull request as ready for review August 5, 2024 10:20
@eseliger eseliger requested a review from a team August 5, 2024 10:20
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from 6ab8518 to 8a7ab20 Compare August 5, 2024 14:47
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 7380af5 to f90f1cf Compare August 5, 2024 14:47
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports branch from 8a7ab20 to c9ba3ca Compare August 6, 2024 10:50
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from f90f1cf to 55a484c Compare August 6, 2024 10:50
@eseliger eseliger changed the base branch from es/07-30-choreremoveunnecessary_imports to graphite-base/64159 August 6, 2024 11:28
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from 55a484c to c2de048 Compare August 6, 2024 11:29
@eseliger eseliger changed the base branch from graphite-base/64159 to main August 6, 2024 11:29
This PR makes the calls to create the OIDC provider explicit, so that we don't need to implicitly need to call a Refresh method, even if we might end up not needing the `p.oidc`.
This is a start toward being able to create providers on the fly cheaply vs having a globally managed list of providers in memory.

Test plan: Auth with SAMS locally still works.
@eseliger eseliger force-pushed the es/07-30-choreremoveunnecessary_imports_split branch from c2de048 to a4166e9 Compare August 7, 2024 08:10

eseliger commented Aug 8, 2024

Copy link
Copy Markdown
Member Author

Merge activity

@eseliger eseliger merged commit 889ed1d into main Aug 8, 2024
@eseliger eseliger deleted the es/07-30-choreremoveunnecessary_imports_split branch August 8, 2024 08:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants