Skip to content

Commit

Permalink
fix(jans-cli-tui): unable to use SSA endpint in first start(ref:#3874)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Feb 17, 2023
1 parent 03dc34d commit 83e1e25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
3 changes: 1 addition & 2 deletions jans-cli-tui/cli_tui/jans_cli_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ async def coroutine():

else:
self.cli_object_ok = True

self.check_available_plugins()
self.check_available_plugins()


def check_available_plugins(self) -> None:
Expand Down
16 changes: 6 additions & 10 deletions jans-cli-tui/cli_tui/plugins/010_auth_server/ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@
from prompt_toolkit.widgets import Button, Label, Checkbox, Dialog
from prompt_toolkit.buffer import Buffer

from cli import config_cli
from utils.multi_lang import _
from utils.utils import DialogUtils
from utils.static import cli_style, common_strings
from wui_components.jans_vetrical_nav import JansVerticalNav
from wui_components.jans_cli_dialog import JansGDialog
from wui_components.jans_label_container import JansLabelContainer
from wui_components.jans_date_picker import DateSelectWidget

from cli import config_cli


from utils.multi_lang import _

class SSA(DialogUtils):
def __init__(
Expand Down Expand Up @@ -58,16 +56,14 @@ def __init__(


def init_cli_object(self):

self.cli_object = config_cli.JCA_CLI(
host=config_cli.host,
client_id=config_cli.client_id,
client_secret=config_cli.client_secret,
access_token=config_cli.access_token,
host=self.app.cli_object.idp_host,
client_id=self.app.cli_object.client_id,
client_secret=self.app.cli_object.client_secret,
access_token=self.app.cli_object.access_token,
op_mode = 'auth'
)


def update_ssa_container(self, start_index=0, search_str=''):

self.working_container.clear()
Expand Down

0 comments on commit 83e1e25

Please sign in to comment.