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

Authentication fails #3

Open
cdot65 opened this issue Feb 13, 2023 · 1 comment
Open

Authentication fails #3

cdot65 opened this issue Feb 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cdot65
Copy link

cdot65 commented Feb 13, 2023

Describe the bug

Unable to authenticate with the API.

Expected behavior

sdk.interactive.login_secret(client_id="automation@12345678.iam.panserviceaccount.com", client_secret="12345678-1234-1234-1234-123456789012", tsg_id=12345678)

Current behavior

unable to authenticate

sdk.interactive.login_secret(client_id="automation@12345678.iam.panserviceaccount.com", client_secret="12345678-1234-1234-1234-123456789012", tsg_id=12345678)
Profile retrieval failed.
Profile retrieval failed.

Possible solution

There was a recent change to the scoped permissions, whereas before we would pass scope in our API call as k/v pair scope: tsg_id:12345678 and now it's scope: profile tsg_id:12345678 email

Steps to reproduce

Try to authenticate in the same fashion as detailed in the documentation

  1. sdk.interactive.login_secret(client_id="automation@12345678.iam.panserviceaccount.com", client_secret="12345678-1234-1234-1234-123456789012", tsg_id=12345678)

Screenshots

2023-02-13_13-05-09

Context

unable to authenticate prevents the use of the SDK.

Your Environment

  • Version used: unable to find version, installed via pip install 'prisma-sase-sdk-python @ https://github.com/PaloAltoNetworks/prisma-sase-sdk-python'

  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): python3.10

  • Operating System and version (desktop or mobile): Windows WSL2 (Ubuntu 20.04)

  • Link to your project: n/a

@cdot65 cdot65 added the bug Something isn't working label Feb 13, 2023
@welcome-to-palo-alto-networks

🎉 Thanks for opening your first issue here! Welcome to the community!

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