How to use the okta.models.protocol_endpoint.ProtocolEndpoint 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 / models / protocol.py View on Github external
)
            else:
                self.credentials = None
            if "endpoints" in config:
                if isinstance(config["endpoints"],
                              ProtocolEndpoints):
                    self.endpoints = config["endpoints"]
                else:
                    self.endpoints = ProtocolEndpoints(
                        config["endpoints"]
                    )
            else:
                self.endpoints = None
            if "issuer" in config:
                if isinstance(config["issuer"],
                              ProtocolEndpoint):
                    self.issuer = config["issuer"]
                else:
                    self.issuer = ProtocolEndpoint(
                        config["issuer"]
                    )
            else:
                self.issuer = None
            if "relayState" in config:
                if isinstance(config["relayState"],
                              ProtocolRelayState):
                    self.relay_state = config["relayState"]
                else:
                    self.relay_state = ProtocolRelayState(
                        config["relayState"]
                    )
            else:
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
def __init__(self, config=None):
        super().__init__(config)
        if config:
            if "acs" in config:
                if isinstance(config["acs"],
                              ProtocolEndpoint):
                    self.acs = config["acs"]
                else:
                    self.acs = ProtocolEndpoint(
                        config["acs"]
                    )
            else:
                self.acs = None
            if "authorization" in config:
                if isinstance(config["authorization"],
                              ProtocolEndpoint):
                    self.authorization = config["authorization"]
                else:
                    self.authorization = ProtocolEndpoint(
                        config["authorization"]
                    )
            else:
                self.authorization = None
            if "jwks" in config:
                if isinstance(config["jwks"],
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "slo" in config:
                if isinstance(config["slo"],
                              ProtocolEndpoint):
                    self.slo = config["slo"]
                else:
                    self.slo = ProtocolEndpoint(
                        config["slo"]
                    )
            else:
                self.slo = None
            if "sso" in config:
                if isinstance(config["sso"],
                              ProtocolEndpoint):
                    self.sso = config["sso"]
                else:
                    self.sso = ProtocolEndpoint(
                        config["sso"]
                    )
            else:
                self.sso = None
            if "token" in config:
                if isinstance(config["token"],
                              ProtocolEndpoint):
                    self.token = config["token"]
                else:
                    self.token = ProtocolEndpoint(
                        config["token"]
                    )
            else:
                self.token = None
            if "userInfo" in config:
                if isinstance(config["userInfo"],
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "metadata" in config:
                if isinstance(config["metadata"],
                              ProtocolEndpoint):
                    self.metadata = config["metadata"]
                else:
                    self.metadata = ProtocolEndpoint(
                        config["metadata"]
                    )
            else:
                self.metadata = None
            if "slo" in config:
                if isinstance(config["slo"],
                              ProtocolEndpoint):
                    self.slo = config["slo"]
                else:
                    self.slo = ProtocolEndpoint(
                        config["slo"]
                    )
            else:
                self.slo = None
            if "sso" in config:
                if isinstance(config["sso"],
                              ProtocolEndpoint):
                    self.sso = config["sso"]
                else:
                    self.sso = ProtocolEndpoint(
                        config["sso"]
                    )
            else:
                self.sso = None
            if "token" in config:
                if isinstance(config["token"],
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "acs" in config:
                if isinstance(config["acs"],
                              ProtocolEndpoint):
                    self.acs = config["acs"]
                else:
                    self.acs = ProtocolEndpoint(
                        config["acs"]
                    )
            else:
                self.acs = None
            if "authorization" in config:
                if isinstance(config["authorization"],
                              ProtocolEndpoint):
                    self.authorization = config["authorization"]
                else:
                    self.authorization = ProtocolEndpoint(
                        config["authorization"]
                    )
            else:
                self.authorization = None
            if "jwks" in config:
                if isinstance(config["jwks"],
                              ProtocolEndpoint):
                    self.jwks = config["jwks"]
                else:
                    self.jwks = ProtocolEndpoint(
                        config["jwks"]
                    )
            else:
                self.jwks = None
            if "metadata" in config:
                if isinstance(config["metadata"],
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "jwks" in config:
                if isinstance(config["jwks"],
                              ProtocolEndpoint):
                    self.jwks = config["jwks"]
                else:
                    self.jwks = ProtocolEndpoint(
                        config["jwks"]
                    )
            else:
                self.jwks = None
            if "metadata" in config:
                if isinstance(config["metadata"],
                              ProtocolEndpoint):
                    self.metadata = config["metadata"]
                else:
                    self.metadata = ProtocolEndpoint(
                        config["metadata"]
                    )
            else:
                self.metadata = None
            if "slo" in config:
                if isinstance(config["slo"],
                              ProtocolEndpoint):
                    self.slo = config["slo"]
                else:
                    self.slo = ProtocolEndpoint(
                        config["slo"]
                    )
            else:
                self.slo = None
            if "sso" in config:
                if isinstance(config["sso"],
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
)
            else:
                self.jwks = None
            if "metadata" in config:
                if isinstance(config["metadata"],
                              ProtocolEndpoint):
                    self.metadata = config["metadata"]
                else:
                    self.metadata = ProtocolEndpoint(
                        config["metadata"]
                    )
            else:
                self.metadata = None
            if "slo" in config:
                if isinstance(config["slo"],
                              ProtocolEndpoint):
                    self.slo = config["slo"]
                else:
                    self.slo = ProtocolEndpoint(
                        config["slo"]
                    )
            else:
                self.slo = None
            if "sso" in config:
                if isinstance(config["sso"],
                              ProtocolEndpoint):
                    self.sso = config["sso"]
                else:
                    self.sso = ProtocolEndpoint(
                        config["sso"]
                    )
            else:
github okta / okta-sdk-python / okta / models / protocol.py View on Github external
if "endpoints" in config:
                if isinstance(config["endpoints"],
                              ProtocolEndpoints):
                    self.endpoints = config["endpoints"]
                else:
                    self.endpoints = ProtocolEndpoints(
                        config["endpoints"]
                    )
            else:
                self.endpoints = None
            if "issuer" in config:
                if isinstance(config["issuer"],
                              ProtocolEndpoint):
                    self.issuer = config["issuer"]
                else:
                    self.issuer = ProtocolEndpoint(
                        config["issuer"]
                    )
            else:
                self.issuer = None
            if "relayState" in config:
                if isinstance(config["relayState"],
                              ProtocolRelayState):
                    self.relay_state = config["relayState"]
                else:
                    self.relay_state = ProtocolRelayState(
                        config["relayState"]
                    )
            else:
                self.relay_state = None
            self.scopes = config["scopes"]\
                if "scopes" in config else None
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "sso" in config:
                if isinstance(config["sso"],
                              ProtocolEndpoint):
                    self.sso = config["sso"]
                else:
                    self.sso = ProtocolEndpoint(
                        config["sso"]
                    )
            else:
                self.sso = None
            if "token" in config:
                if isinstance(config["token"],
                              ProtocolEndpoint):
                    self.token = config["token"]
                else:
                    self.token = ProtocolEndpoint(
                        config["token"]
                    )
            else:
                self.token = None
            if "userInfo" in config:
                if isinstance(config["userInfo"],
                              ProtocolEndpoint):
                    self.user_info = config["userInfo"]
                else:
                    self.user_info = ProtocolEndpoint(
                        config["userInfo"]
                    )
            else:
                self.user_info = None
        else:
            self.acs = None
github okta / okta-sdk-python / okta / models / protocol_endpoints.py View on Github external
if "authorization" in config:
                if isinstance(config["authorization"],
                              ProtocolEndpoint):
                    self.authorization = config["authorization"]
                else:
                    self.authorization = ProtocolEndpoint(
                        config["authorization"]
                    )
            else:
                self.authorization = None
            if "jwks" in config:
                if isinstance(config["jwks"],
                              ProtocolEndpoint):
                    self.jwks = config["jwks"]
                else:
                    self.jwks = ProtocolEndpoint(
                        config["jwks"]
                    )
            else:
                self.jwks = None
            if "metadata" in config:
                if isinstance(config["metadata"],
                              ProtocolEndpoint):
                    self.metadata = config["metadata"]
                else:
                    self.metadata = ProtocolEndpoint(
                        config["metadata"]
                    )
            else:
                self.metadata = None
            if "slo" in config:
                if isinstance(config["slo"],