ds_provider_aic_py_lib.linked_service ===================================== .. py:module:: ds_provider_aic_py_lib.linked_service .. autoapi-nested-parse:: **File**: `__init__.py` **Region**: `ds_provider_aic_py_lib.linked_service` AIC identity linked service. .. rubric:: Example >>> linked_service = AICIdentityLinkedService( ... id=uuid.uuid4(), ... name="aic-identity", ... version="1.0.0", ... settings=AICIdentityLinkedServiceSettings( ... auth_type=AuthType.BEARER, ... bearer=AICIdentityBearerAuthSettings( ... username="user@example.com", ... password="pass", ... ), ... ), ... ) >>> linked_service.connect() Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/ds_provider_aic_py_lib/linked_service/identity/index Classes ------- .. autoapisummary:: ds_provider_aic_py_lib.linked_service.AICIdentityBearerAuthSettings ds_provider_aic_py_lib.linked_service.AICIdentityLinkedService ds_provider_aic_py_lib.linked_service.AICIdentityLinkedServiceSettings ds_provider_aic_py_lib.linked_service.AICIdentityOAuth2AuthSettings Package Contents ---------------- .. py:class:: AICIdentityBearerAuthSettings Bases: :py:obj:`ds_protocol_http_py_lib.linked_service.http.BearerAuthSettings` Username and password settings for the AIC identity server. ``username`` is the account email. The HTTP protocol posts it to ``token_endpoint`` and stores the returned bearer token. .. attribute:: token_endpoint The URL to obtain the bearer token. .. py:attribute:: token_endpoint :type: str :value: 'https://auth.grasp-daas.com/auth/login/' //auth.grasp-daas.com/auth/login/' :type: The URL to obtain the bearer token. Default is 'https .. py:class:: AICIdentityLinkedService Bases: :py:obj:`ds_protocol_http_py_lib.linked_service.http.HttpLinkedService`\ [\ :py:obj:`AICIdentityLinkedServiceSettingsType`\ ], :py:obj:`Generic`\ [\ :py:obj:`AICIdentityLinkedServiceSettingsType`\ ] Linked service for the AIC identity server. .. py:attribute:: settings :type: AICIdentityLinkedServiceSettingsType .. py:property:: type :type: ds_provider_aic_py_lib.enums.ResourceType The type of the linked service. :returns: The type of the linked service. :rtype: ResourceType .. py:class:: AICIdentityLinkedServiceSettings Bases: :py:obj:`ds_protocol_http_py_lib.linked_service.http.HttpLinkedServiceSettings` Settings required to connect to the AIC identity server. .. attribute:: host AIC identity host. .. attribute:: auth_type Bearer (username/password) or OAuth2 (client credentials). .. attribute:: schema The schema to use for the connection (e.g., "https"). .. attribute:: oauth2 OAuth2 authentication settings (if auth_type is OAUTH2). .. attribute:: bearer Username and password settings (if auth_type is BEARER). .. py:attribute:: host :type: str :value: 'auth.grasp-daas.com' AIC identity host. Default is 'auth.grasp-daas.com'. .. py:attribute:: auth_type :type: ds_protocol_http_py_lib.enums.AuthType The type of authentication to use. Default is BEARER. .. py:attribute:: schema :type: str :value: 'https' The schema to use for the connection. Default is 'https'. .. py:attribute:: oauth2 :type: AICIdentityOAuth2AuthSettings | None :value: None OAuth2 authentication settings (if auth_type is OAUTH2). .. py:attribute:: bearer :type: AICIdentityBearerAuthSettings | None :value: None Username and password settings (if auth_type is BEARER). .. py:class:: AICIdentityOAuth2AuthSettings Bases: :py:obj:`ds_protocol_http_py_lib.linked_service.http.OAuth2AuthSettings` OAuth2 client-credentials settings for the AIC identity server. .. attribute:: token_endpoint The URL to obtain the OAuth2 token. .. attribute:: scope Scopes sent on the token request. .. py:attribute:: token_endpoint :type: str :value: 'https://auth.grasp-daas.com/oauth/token/' //auth.grasp-daas.com/oauth/token/' :type: The URL to obtain the OAuth2 token. Default is 'https .. py:attribute:: scope :type: str | None :value: 'openid read' OAuth2 scope. Default is 'openid read'.