Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
request, error = await self._request_executor.create_request(
http_method, api_url, body, headers
)
if error:
return (None, None, error)
response, error = await self._request_executor\
.execute(request, Application)
if error:
return (None, response, error)
try:
result = Application(
response.get_body()
)
except Exception as error:
return (None, response, error)
return (result, response, None)
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.scheme_application_credentials\
import SchemeApplicationCredentials
from okta.models.basic_application_settings\
import BasicApplicationSettings
class BasicAuthApplication(
Application
):
"""
A class for BasicAuthApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
if "credentials" in config:
if isinstance(config["credentials"],
SchemeApplicationCredentials):
self.credentials = config["credentials"]
else:
self.credentials = SchemeApplicationCredentials(
config["credentials"]
)
request, error = await self._request_executor.create_request(
http_method, api_url, body, headers
)
if error:
return (None, None, error)
response, error = await self._request_executor\
.execute(request, Application)
if error:
return (None, response, error)
try:
result = Application(
response.get_body()
)
except Exception as error:
return (None, response, error)
return (result, response, None)
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.scheme_application_credentials\
import SchemeApplicationCredentials
from okta.models.auto_login_application_settings\
import AutoLoginApplicationSettings
class AutoLoginApplication(
Application
):
"""
A class for AutoLoginApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
if "credentials" in config:
if isinstance(config["credentials"],
SchemeApplicationCredentials):
self.credentials = config["credentials"]
else:
self.credentials = SchemeApplicationCredentials(
config["credentials"]
)
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.scheme_application_credentials\
import SchemeApplicationCredentials
class BrowserPluginApplication(
Application
):
"""
A class for BrowserPluginApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
if "credentials" in config:
if isinstance(config["credentials"],
SchemeApplicationCredentials):
self.credentials = config["credentials"]
else:
self.credentials = SchemeApplicationCredentials(
config["credentials"]
)
if query_params:
encoded_query_params = urlencode(query_params)
api_url += f"/?{encoded_query_params}"
body = {}
headers = {}
request, error = await self._request_executor.create_request(
http_method, api_url, body, headers
)
if error:
return (None, None, error)
response, error = await self._request_executor\
.execute(request, Application)
if error:
return (None, response, error)
try:
result = []
for item in response.get_body():
result.append(Application(item))
except Exception as error:
return (None, response, error)
return (result, response, None)
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.saml_application_settings\
import SamlApplicationSettings
class SamlApplication(
Application
):
"""
A class for SamlApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
if "settings" in config:
if isinstance(config["settings"],
SamlApplicationSettings):
self.settings = config["settings"]
else:
self.settings = SamlApplicationSettings(
config["settings"]
)
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.scheme_application_credentials\
import SchemeApplicationCredentials
from okta.models.secure_password_store_application_settings\
import SecurePasswordStoreApplicationSettings
class SecurePasswordStoreApplication(
Application
):
"""
A class for SecurePasswordStoreApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
if "credentials" in config:
if isinstance(config["credentials"],
SchemeApplicationCredentials):
self.credentials = config["credentials"]
else:
self.credentials = SchemeApplicationCredentials(
config["credentials"]
)
http_method, api_url, body, headers
)
if error:
return (None, None, error)
response, error = await self._request_executor\
.execute(request, Application)
if error:
return (None, response, error)
try:
result = []
for item in response.get_body():
result.append(Application(item))
except Exception as error:
return (None, response, error)
return (result, response, None)
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION
from okta.models.application\
import Application
from okta.models.ws_federation_application_settings\
import WsFederationApplicationSettings
class WsFederationApplication(
Application
):
"""
A class for WsFederationApplication objects.
"""
def __init__(self, config=None):
super().__init__(config)
if config:
self.name = config["name"]\
if "name" in config else "template_wsfed"
if "settings" in config:
if isinstance(config["settings"],
WsFederationApplicationSettings):
self.settings = config["settings"]
else:
self.settings = WsFederationApplicationSettings(