Thanks for quick reply, Yes Im using python3.7 binary came with shotgun. For privacy reasons I’ve removed the SG URL and login details. (FYI We have SG hosted internally). Here is the log
rahul@hh-5950x-016 /opt/Shotgun/Python3/bin$ ./python3.7 ~/sg_user_authenitcation.py
[DEBUG sgtk.core.log] Debug logging enabled. To permanently enable it, set the TK_DEBUG environment variable.
[DEBUG sgtk.core.log] Setting TK_DEBUG in the environment for this session. This ensures that subprocesses spawned from this process will inherit the global debug logging setting from this process.
[DEBUG sgtk.core.util.user_settings] Reading user settings from /home/rahul/.shotgun/preferences/toolkit.ini
[DEBUG sgtk.core.util.user_settings] Default site:
[DEBUG sgtk.core.util.user_settings] Default login:
[DEBUG sgtk.core.util.user_settings] SG proxy:
[DEBUG sgtk.core.util.user_settings] App Store proxy:
[DEBUG sgtk.core.util.user_settings] System proxy:
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current user is ‘rahul’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] No cached user found for rahul
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current user is ‘rahul’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current user is ‘rahul’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] No cached user found for rahul
[DEBUG sgtk.core.authentication.shotgun_authenticator] No default user found.
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current host is ‘<shotgun URL’
[DEBUG sgtk.core.authentication.session_cache] Loading ‘/home/rahul/.shotgun/hernehill/authentication.yml’
[DEBUG sgtk.core.authentication.session_cache] Current user is ‘rahul’
[DEBUG sgtk.core.authentication.console_authentication] Requesting password on command line.
Please enter your login credentials.
Host [<shotgun URL]: <shotgun URL
[INFO tank.authentication.sso_saml2.core.utils] Infos for site ‘<shotgun URL’ not in cache or expired
[DEBUG tank.authentication.sso_saml2.core.utils] User authentication method for <shotgun URL: oxygen
Login [rahul]: my_login_email
Password (empty to abort):
[DEBUG sgtk.core.authentication.session_cache] Connecting to SG to generate session token…
[DEBUG sgtk.stopwatch.tank.authentication.session_cache] generate_session_token: 0.112043s
Login failed: Authentication failed: Can’t authenticate user ‘my_login_email’.
Please enter your login credentials.
Host [<shotgun URL]: