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

Access Token Authorization Fails Incorrectly #95

Open
jeffkala opened this issue Jul 5, 2023 · 1 comment
Open

Access Token Authorization Fails Incorrectly #95

jeffkala opened this issue Jul 5, 2023 · 1 comment

Comments

@jeffkala
Copy link

jeffkala commented Jul 5, 2023

https://github.com/nautobot/nautobot-plugin-secrets-providers/blob/f41c609fb98cfead41259b93c3891f62229552b5/nautobot_secrets_providers/providers/delinea.py#L120

This code block doesn't allow for the use of AccessTokenAuthorizer which only needs/requires ("base_url", "tenant", "token")

This check doesn't allow for a "supported" authorizer using the supported required arguments.

@jeffkala
Copy link
Author

jeffkala commented Jul 5, 2023

  • The PasswordGrantAuthorizer requires a base_url, username, and password. It optionally takes a token_path_uri, but defaults to /oauth2/token.
  • The DomainPasswordGrantAuthorizer requires a base_url, username, domain, and password. It optionally takes a token_path_uri, but defaults to /oauth2/token.
  • The AccessTokenAuthorizer requires base_url, tenant, and token.

Additionally appears that if cloud_based is True, then tenant is a requirement.

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

No branches or pull requests

1 participant