Skip to content

Commit

Permalink
automation callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Jun 20, 2024
1 parent 8282a7a commit e3f4235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apsbot/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def login(auth_type):
TokenConfig.save_config(token)
click.echo("Token saved to token_config.json. Authentication type: 2-legged.")
elif auth_type == '2':
auth = AuthGoogleColab()
auth = Auth()
print("Authenticating with 3-legged OAuth...")
print("Please make sure you added the callback 'http://localhost:8080/api/auth/callback' to your app settings.")
token = auth.auth3leg()
TokenConfig.save_config(token)
click.echo("Token saved to token_config.json. Authentication type: 3-legged.")
Expand Down Expand Up @@ -61,7 +63,7 @@ def auth2leg():
@click.option('--scope', prompt='Scope', default='data:read data:write', help='The scope.')
def auth3leg(callback, scope):
"""This command authenticates with 3-legged OAuth and copies the token to the clipboard."""
auth = AuthGoogleColab()
auth = Auth()
result = auth.auth3leg(callback, scope)
if not result:
click.echo("Auth 3 legged failed.")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="apsbot",
version="0.2.8",
version="0.2.9",
packages=find_packages(),
include_package_data=True,
install_requires=[
Expand Down

0 comments on commit e3f4235

Please sign in to comment.