<a id="lifescience-aai-temporary-instance-for-eosc-node"></a>

# Lifescience AAI - (Temporary instance for EOSC node)

<a id="backend-class"></a>

## Backend class

For Django, add this class path to `AUTHENTICATION_BACKENDS`. For other
integrations, use the same class path in the framework-specific backend
setting.

| Backend name        | Class path                                                           |
|---------------------|----------------------------------------------------------------------|
| `life_science_eosc` | `social_core.backends.lifescience_eosc.LifeScienceEoscOpenIdConnect` |

Lifescience’s OpenID Connect (OIDC) backend requires the following minimum
configuration:

```default
SOCIAL_AUTH_LIFESCIENCE_EOSC_OIDC_KEY = '<client_id>'
SOCIAL_AUTH_LIFESCIENCE_EOSC_OIDC_SECRET = '<client_secret>'
```

<a id="scopes"></a>

## Scopes

The default scopes will include the user’s email.
You can request additional claims, for example:

```default
SOCIAL_AUTH_LIFESCIENCE_EOSC_OIDC_SCOPE = ['eduperson_entitlement']
```

and you can prevent the inclusion of the default scopes using:

```default
SOCIAL_AUTH_LIFESCIENCE_EOSC_OIDC_IGNORE_DEFAULT_SCOPE = True
```
