IdProviderFactory

The Identity Provider Factory instantiates IdProvider objects according to their configuration

class DIRAC.Resources.IdProvider.IdProviderFactory.IdProviderFactory

Bases: object

__init__()

Standard constructor

getIdProvider(name, **kwargs)

This method returns a IdProvider instance corresponding to the supplied name.

Parameters:

name (str) – the name of the Identity Provider client

Returns:

S_OK(IdProvider)/S_ERROR()

getIdProviderFromToken(accessToken)

This method returns a IdProvider instance corresponding to the supplied issuer in a token.

Parameters:

token – access token or dict with access_token key

Returns:

S_OK(IdProvider)/S_ERROR()