ds_provider_aic_py_lib.linked_service.identity ============================================== .. py:module:: ds_provider_aic_py_lib.linked_service.identity .. autoapi-nested-parse:: **File**: ``identity.py`` **Region**: ``ds_provider_aic_py_lib/linked_service/identity`` Linked service for the AIC identity server. Sign-in is the HTTP protocol. This module only sets the AIC defaults. Attributes ---------- .. autoapisummary:: ds_provider_aic_py_lib.linked_service.identity.AICIdentityLinkedServiceSettingsType Classes ------- .. autoapisummary:: ds_provider_aic_py_lib.linked_service.identity.AICIdentityOAuth2AuthSettings ds_provider_aic_py_lib.linked_service.identity.AICIdentityBearerAuthSettings ds_provider_aic_py_lib.linked_service.identity.AICIdentityLinkedServiceSettings ds_provider_aic_py_lib.linked_service.identity.AICIdentityLinkedService Module Contents --------------- .. 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'. .. 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:: 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:data:: AICIdentityLinkedServiceSettingsType .. 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