Skip to content

docker: split private token helper functions to reusable pkg#4445

Merged
dmcgowan merged 2 commits intocontainerd:masterfrom
tonistiigi:auth-refactor
Aug 25, 2020
Merged

docker: split private token helper functions to reusable pkg#4445
dmcgowan merged 2 commits intocontainerd:masterfrom
tonistiigi:auth-refactor

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Avoid custom implementations of Authorizer to copy-paste a lot of utility functions.

@AkihiroSuda

Signed-off-by: Tonis Tiigi [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 3, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 4, 2020

Build succeeded.

@tonistiigi
Copy link
Copy Markdown
Member Author

@AkihiroSuda Added another commit to return full token structs from functions.

@thaJeztah
Copy link
Copy Markdown
Member

ping @AkihiroSuda @dmcgowan PTAL

@crosbymichael crosbymichael requested a review from dmcgowan August 25, 2020 15:52
@crosbymichael
Copy link
Copy Markdown
Member

LGTM but @dmcgowan should check and merge this

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

LGTM

Although this might need some refactoring before it is finalized for 1.5. I don't know if it makes much sense to have the package users worry about endpoint fallback and oauth vs anonymous.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants