---
title: "Interface IUserSignInContext"
slug: "scripting--stylelabs.m.scripting.types.v1_0.user.signin.iusersignincontext"
abstract: ""
---
# Interface IUserSignInContext

Used for scripts that execute when a user signs in.

## Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0UserSignIn

## Assembly: Stylelabs.M.Scripting.Types.dll

## Syntax

```csharp
public interface IUserSignInContext
```

## Properties

### [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.authenticationsource.html)

Gets the source of registration, which can be internal (M) or external (e.g. from an SSO).

#### Declaration

```csharp
AuthenticationSource AuthenticationSource { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.authenticationsource.html) |  |

### [ExternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.externaluserinfo.html)

Gets information about the user that the external provider supplied. Only set (and useful) when [AuthenticationSource](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.signin.iusersignincontext.html) is AuthenticationSource.External .

#### Declaration

```csharp
ExternalUserInfo ExternalUserInfo { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [ExternalUserInfo](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.user.externaluserinfo.html) |  |

### User

Gets the related user object in M.

#### Declaration

```csharp
IEntity User { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEntity |  |
