oktaawscli/okta_auth_config.py
def write_role_to_profile(self, okta_profile, role_arn):
        """ Saves role to profile in config """
        if not self._value.has_section(okta_profile):
            self._value.add_section(okta_profile)

        base_url = self.base_url_for(okta_profile)
        self._value.set(okta_profile, 'base-url', base_url)
        self._value.set(okta_profile, 'role', role_arn)

        with open(self.config_path, 'w+') as configfile:
            self._value.write(configfile)
 Saves role to profile in config 
Saves role to profile in config
Saves role to profile in config
def write_role_to_profile(self, okta_profile, role_arn):
        if not self._value.has_section(okta_profile):
            self._value.add_section(okta_profile)
        base_url = self.base_url_for(okta_profile)
        self._value.set(okta_profile, 'base-url', base_url)
        self._value.set(okta_profile, 'role', role_arn)
        with open(self.config_path, 'w+') as configfile:
            self._value.write(configfile)
def write_role_to_profile ( self , okta_profile , role_arn ) : if not self . _value . has_section ( okta_profile ) : self . _value . add_section ( okta_profile ) base_url = self . base_url_for ( okta_profile ) self . _value . set ( okta_profile , 'base-url' , base_url ) self . _value . set ( okta_profile , 'role' , role_arn ) with open ( self . config_path , 'w+' ) as configfile : self . _value . write ( configfile )
Saves role to profile in config
Saves role to profile in config
""" Saves role to profile in config """
self
okta_profile
role_arn