---
title: "Namespace Stylelabs.M.Sdk.WebClient.Authentication"
slug: "web-sdk--stylelabs.m.sdk.webclient.authentication"
abstract: ""
---
# Namespace Stylelabs.M.Sdk.WebClient.Authentication

## Classes

### [OAuthPasswordGrant](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.authentication.oauthpasswordgrant.html)

This grant is a great user experience for trusted first party clients both on the web and in native device applications. Also known as "Resource owner credentials grant".

### [OAuthRefreshTokenGrant](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.authentication.oauthrefreshtokengrant.html)

Access tokens eventually expire; however some grants respond with a refresh token which enables the client to get a new access token without requiring the user to be redirected.

## Interfaces

### [IOAuthGrant](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.authentication.ioauthgrant.html)

Defines the shared OAuth grant parameters.
