Skip to content
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

Add support for issue a token from an IdentityProvider using OAuth2 or OpenIDConnect client_credential grant. #926

Closed
decko opened this issue Mar 18, 2024 · 1 comment · Fixed by #1013
Labels
feature request New feature request (template-set)

Comments

@decko
Copy link
Member

decko commented Mar 18, 2024

Summary

Using OAuth2 or OpenIDConnect client_credential grant, we can issue a token from an third party Identity Provider to be used to authenticate against Pulp or an API Gateway in front of it. This access_token would be sent as an Authorization header along the request to the Pulp instance.

Examples

As an example we could use:
pulp --client_id <client_id> --client_secret <client_secret> --token_url <https://identityprovider.com/oidc/token> status
to request pulp status.

@decko decko added feature request New feature request (template-set) Triage-Needed Needs to be reviewed at next pulp-cli mtg labels Mar 18, 2024
decko added a commit to decko/pulp-cli that referenced this issue Mar 18, 2024
@mdellweg
Copy link
Member

Please have a look at container registries.
We do not want the user to know the url of the token server. The api (or api-gateway) must send the bearer server url along with a www-authenticate header, which in turn a subclass of requests.auth.AuthBase in pulp-cli shall use to issue a token. No need to add any new parameter for the user to bother.

@mdellweg mdellweg removed the Triage-Needed Needs to be reviewed at next pulp-cli mtg label Apr 10, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 11, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 11, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 11, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 25, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 25, 2024
decko added a commit to decko/pulp-cli that referenced this issue Jul 26, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 9, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
decko added a commit to decko/pulp-cli that referenced this issue Aug 22, 2024
ggainey pushed a commit that referenced this issue Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants