You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why playing around with the sandbox I notice a bug:
cviola@terminus $ ztoken token -h
Usage: ztoken token [OPTIONS]
Create a new Platform IAM token or use an existing one.
Options:
-n, --name TOKEN_NAME Custom token name (will be stored)
-a, --authorize-url AUTH_URL OAuth 2 Authorization Endpoint URL to generate access token
-c, --client-id CLIENT_ID Client ID to use
-p, --business-partner-id PARTNER_ID
Business Partner ID to use
-r, --refresh Force refresh of the access token
-h, --help Show this message and exit.
So I wanted to use a different business partner.
Note the Business Partner parameter is used as client id 😕
cviola@terminus $ ztoken token -n sandbox -a https://sandbox.identity.zalando.com/oauth2/authorize -p foobar
Invalid URL 'client-id': No schema supplied. Perhaps you meant http://client-id?
Your browser has been opened to visit:
https://sandbox.identity.zalando.com/oauth2/authorize?business_partner_id=<already configured BP is used>&client_id=foobar&redirect_uri=http://localhost:8081&response_type=token
^C
Aborted!
Strangely enough if you use right parameter -c the same thing happens but it runs home to mama and takes the default values from the config.
cviola@terminus $ ztoken token -n sandbox -a https://sandbox.identity.zalando.com/oauth2/authorize -c blahh
Invalid URL 'blahh': No schema supplied. Perhaps you meant http://blahh?
Your browser has been opened to visit:
https://sandbox.identity.zalando.com/oauth2/authorize?business_partner_id=<already configured BP is used>&client_id=<default>&redirect_uri=http://localhost:8081&response_type=token
^C
Aborted!
The text was updated successfully, but these errors were encountered:
Why playing around with the sandbox I notice a bug:
So I wanted to use a different business partner.
Strangely enough if you use right parameter
-c
the same thing happens but it runs home to mama and takes the default values from the config.The text was updated successfully, but these errors were encountered: