-
Hello, I need some help with authentication. I have registered my app in the Azure Portal and everything until now seems fine. I have a very small testing script to try and authenticate. It only does account = Account(credentials)
if account.authenticate(scopes=['basic', 'message_all']):
print('Authenticated!')
else:
print('Not authenticated...') I want to authenticate on behalf of a user, thus I get the message "Visit the following url to give consent: ..", when I follow the link, I get redirected and seem to receive the link that I need to paste back into the terminal that now says "Paste the authenticated url here:" My problem now is, a good chunk of this url gets cut off due to input length limitations on this python script and I am therefore unable to enter the whole url. If I paste it into the terminal outside of the script it doesn't get cut off, so it is nothing I could change with another terminal or terminal settings. What can I do about this? Or is there a declarative way to let the script receive the token via another way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, i forgot to |
Beta Was this translation helpful? Give feedback.
Nevermind, i forgot to
import readline
on MacOs when creating the small test script outside my main project, this fixed it and it is now working!