Skip to content

sso

sso

SSO dataclass

SSO(
    auth: DomoAuth,
    OIDC: SSO_OIDC_Config = None,
    SAML: SSO_SAML_Config = None,
)

Bases: DomoManager

class for managing SSO Config. Includes both OIDC aand SAML

SSO_Config dataclass

SSO_Config(
    auth: DomoAuth,
    idp_enabled: bool,
    enforce_allowlist: bool,
    idp_certificate: str,
)

Bases: DomoBase

base class for SAML and OIDC Config

SSO_OIDC_Config dataclass

SSO_OIDC_Config(
    auth: DomoAuth,
    idp_enabled: bool,
    enforce_allowlist: bool,
    idp_certificate: str,
    login_enabled: bool,
    import_groups: bool,
    require_invitation: bool,
    skip_to_idp: bool,
    redirect_url: str,
    override_sso: bool,
    override_embed: bool,
    well_known_config: str,
    auth_request_endpoint: str = None,
    token_endpoint: str = None,
    user_info_endpoint: str = None,
    public_key: str = None,
)

Bases: SSO_Config

get async classmethod

get(
    auth: DomoAuth,
    session: AsyncClient = None,
    debug_api: bool = False,
    debug_prn: bool = False,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
)

Calls route

Source code in src/crew_dcs/classes/DomoInstanceConfig/sso.py
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
@classmethod
async def get(
    cls,
    auth: DomoAuth,
    session: httpx.AsyncClient = None,
    debug_api: bool = False,
    debug_prn: bool = False,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
):
    context = RouteContext.build_context(
        context=context,
        session=session,
        debug_api=debug_api,
        debug_num_stacks_to_drop=2,
        **context_kwargs,
    )

    res = await sso_routes.get_sso_oidc_config(
        auth=auth,
        context=context,
    )

    if return_raw:
        return res

    return cls.from_dict(auth=auth, obj=res.response, debug_prn=debug_prn)

SSO_SAML_Config dataclass

SSO_SAML_Config(
    auth: DomoAuth,
    idp_enabled: bool,
    enforce_allowlist: bool,
    idp_certificate: str,
    is_enabled: bool,
    import_groups: bool,
    require_invitation: bool,
    redirect_url: str,
    auth_request_endpoint: str = None,
    issuer: str = None,
    relay_state: bool = None,
    sign_auth_request: Any = None,
)

Bases: SSO_Config

get async classmethod

get(
    auth: DomoAuth,
    session: AsyncClient = None,
    debug_api: bool = False,
    debug_prn: bool = False,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
)

Calls route

Source code in src/crew_dcs/classes/DomoInstanceConfig/sso.py
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
@classmethod
async def get(
    cls,
    auth: DomoAuth,
    session: httpx.AsyncClient = None,
    debug_api: bool = False,
    debug_prn: bool = False,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
):
    context = RouteContext.build_context(
        context=context,
        session=session,
        debug_api=debug_api,
        debug_num_stacks_to_drop=2,
        **context_kwargs,
    )

    res = await sso_routes.get_sso_saml_config(
        auth=auth,
        context=context,
    )

    if return_raw:
        return res

    return SSO_SAML_Config.from_dict(
        auth=auth, obj=res.response, debug_prn=debug_prn
    )