How to use the okta.models.application.Application function in okta

To help you get started, we’ve selected a few okta examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github okta / okta-sdk-python / okta / resource_clients / application_client.py View on Github external
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)
github okta / okta-sdk-python / okta / models / basic_auth_application.py View on Github external
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"]
                    )
github okta / okta-sdk-python / okta / resource_clients / application_client.py View on Github external
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)
github okta / okta-sdk-python / okta / models / auto_login_application.py View on Github external
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"]
                    )
github okta / okta-sdk-python / okta / models / browser_plugin_application.py View on Github external
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"]
                    )
github okta / okta-sdk-python / okta / resource_clients / application_client.py View on Github external
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)
github okta / okta-sdk-python / okta / models / saml_application.py View on Github external
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"]
                    )
github okta / okta-sdk-python / okta / models / secure_password_store_application.py View on Github external
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"]
                    )
github okta / okta-sdk-python / okta / resource_clients / application_client.py View on Github external
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)
github okta / okta-sdk-python / okta / models / ws_federation_application.py View on Github external
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(