Skip to content

Commit

Permalink
Merge pull request #5 from grycap/dev-calarcon
Browse files Browse the repository at this point in the history
Dev calarcon
  • Loading branch information
catttam authored May 11, 2023
2 parents 7772f6b + 68c2763 commit f578799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions oscar_python/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,25 @@ def __init__(self, options) -> None:
self.oidc_client(options)

def basic_auth_client(self, options):
self.id = self.id
self.id = options['cluster_id']
self.endpoint = options['endpoint']
self.user = options['user']
self.password = options['password']
self.ssl = bool(options['ssl'])

def oidc_client(self, options):
self.id = self.id
self.id = options['cluster_id']
self.endpoint = options['endpoint']
self.shortname = options['shortname']
self.ssl = bool(options['ssl'])

def set_auth_type(self, options):
if 'user' in options:
self._AUTH_TYPE = "basicauth"
try:
self.get_cluster_info()
except:
print("")
elif 'shortname' in options:
self._AUTH_TYPE = "oidc"
try:
agent.get_access_token(self.shortname)
agent.get_access_token(options['shortname'])
except agent.OidcAgentError as e:
print("ERROR oidc-agent: {}".format(e))
else:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"""Stores the package version."""


__version__ = '1.1.0-beta1'
__version__ = '1.1.0-beta2'

0 comments on commit f578799

Please sign in to comment.