コード例 #1
0
 def __init__(
     self,
     client_id: str = "",
     client_secret: "configv1.StringSource" = None,
     hosted_domain: str = "",
 ):
     super().__init__(api_version="osin.config.openshift.io/v1",
                      kind="GoogleIdentityProvider")
     self.__client_id = client_id
     self.__client_secret = (client_secret if client_secret is not None else
                             configv1.StringSource())
     self.__hosted_domain = hosted_domain
コード例 #2
0
 def __init__(
     self,
     ca: str = "",
     url: str = "",
     client_id: str = "",
     client_secret: "configv1.StringSource" = None,
     legacy: bool = None,
 ):
     super().__init__(api_version="osin.config.openshift.io/v1",
                      kind="GitLabIdentityProvider")
     self.__ca = ca
     self.__url = url
     self.__client_id = client_id
     self.__client_secret = (client_secret if client_secret is not None else
                             configv1.StringSource())
     self.__legacy = legacy
コード例 #3
0
 def __init__(
     self,
     client_id: str = "",
     client_secret: "configv1.StringSource" = None,
     organizations: List[str] = None,
     teams: List[str] = None,
     hostname: str = "",
     ca: str = "",
 ):
     super().__init__(api_version="osin.config.openshift.io/v1",
                      kind="GitHubIdentityProvider")
     self.__client_id = client_id
     self.__client_secret = (client_secret if client_secret is not None else
                             configv1.StringSource())
     self.__organizations = organizations if organizations is not None else []
     self.__teams = teams if teams is not None else []
     self.__hostname = hostname
     self.__ca = ca
コード例 #4
0
 def __init__(
     self,
     url: str = "",
     bind_dn: str = "",
     bind_password: "******" = None,
     insecure: bool = False,
     ca: str = "",
     attributes: "LDAPAttributeMapping" = None,
 ):
     super().__init__(
         api_version="osin.config.openshift.io/v1",
         kind="LDAPPasswordIdentityProvider",
     )
     self.__url = url
     self.__bind_dn = bind_dn
     self.__bind_password = (bind_password if bind_password is not None else
                             configv1.StringSource())
     self.__insecure = insecure
     self.__ca = ca
     self.__attributes = (attributes if attributes is not None else
                          LDAPAttributeMapping())
コード例 #5
0
 def __init__(
     self,
     ca: str = "",
     client_id: str = "",
     client_secret: "configv1.StringSource" = None,
     extra_scopes: List[str] = None,
     extra_authorize_parameters: Dict[str, str] = None,
     urls: "OpenIDURLs" = None,
     claims: "OpenIDClaims" = None,
 ):
     super().__init__(api_version="osin.config.openshift.io/v1",
                      kind="OpenIDIdentityProvider")
     self.__ca = ca
     self.__client_id = client_id
     self.__client_secret = (client_secret if client_secret is not None else
                             configv1.StringSource())
     self.__extra_scopes = extra_scopes if extra_scopes is not None else []
     self.__extra_authorize_parameters = (extra_authorize_parameters
                                          if extra_authorize_parameters
                                          is not None else {})
     self.__urls = urls if urls is not None else OpenIDURLs()
     self.__claims = claims if claims is not None else OpenIDClaims()