Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vguptarippling committed Apr 11, 2024
1 parent 759ac0b commit a687d19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rippling_cli/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from rippling_cli.core.oauth_token import OAuthToken
from rippling_cli.core.rippling_context import RipplingContext
from rippling_cli.cli.commands.login import login
from rippling_cli.config.config import get_oauth_credentials, get_oauth_token_data
from rippling_cli.config.config import get_client_id, get_oauth_token_data


@click.group(context_settings=dict(help_option_names=["-h", "--help"]))
Expand All @@ -33,7 +33,7 @@ def cli(ctx):
ctx.obj = RipplingContext()

# Load the OAuth credentials from the config.py file
ctx.obj.oauth_credentials = get_oauth_credentials()
ctx.obj.oauth_credentials = get_client_id()

# Load the OAuth token from the config directory
oauth_token_dict = get_oauth_token_data()
Expand Down
2 changes: 1 addition & 1 deletion rippling_cli/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config_dir = Path.home() / f".{RIPPLING_DIRECTORY_NAME}"


def get_oauth_credentials():
def get_client_id():
return CLIENT_ID


Expand Down
4 changes: 2 additions & 2 deletions rippling_cli/core/oauth_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from rippling_cli.config.config import get_oauth_credentials
from rippling_cli.config.config import get_client_id


class OAuthClient:
@classmethod
def get_client_credentials(cls):
return get_oauth_credentials()
return get_client_id()

0 comments on commit a687d19

Please sign in to comment.