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

[Bug]: Setting TPA require consent value doesn't work as expected #89

Open
3 tasks done
aladeeb opened this issue Dec 14, 2024 · 0 comments
Open
3 tasks done

[Bug]: Setting TPA require consent value doesn't work as expected #89

aladeeb opened this issue Dec 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aladeeb
Copy link
Contributor

aladeeb commented Dec 14, 2024

Issue checklist

  • This is a bug in Foundry DevTools and not a bug in another project. It is also not an enhancement/feature request
  • I searched through the GitHub issues and this issue has not been opened before.
  • I have installed the latest version of Foundry DevTools and don't use an unsupported python version.

Description of the bug

When I tried to set the require_consent value with False, it did work.

It's an issue with the API call in the multipass client. I'm filing a PR to solve this issue.

Steps to reproduce this bug.

This will never work:

from foundry_dev_tools import FoundryContext, JWTTokenProvider

foundry_token = "YOUR_TOKEN"
foundry_host = "YOUR_HOST"
client_id = "CLIENT_ID"

ctx = FoundryContext(
    token_provider=JWTTokenProvider(
        jwt=foundry_token, host=foundry_host
    )
)

ctx.multipass.api_enable_third_party_application(
    client_id=client_id,
    operations=[],
    resources=[],
    require_consent=False,
).json()

Expected behaviour:
Screenshot 2024-12-14 at 5 49 59 AM

Log output

No response

Additional context

No response

Operating System

MacOS

Your python version

3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant