Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var newGroup = await graphServiceClient
.PostAsync(groupToCreate);
```

`AddAsync` returns the created group on success and throws a `ApiException` on error.
`PostAsync` returns the created group on success and throws an `ApiException` on error.

## Expanding a collection

Expand Down
2 changes: 1 addition & 1 deletion docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ catch (ODataError odataError) when (odataError.Error.Code.Equals(GraphErrorCode.
}
```

Each error object has a `Message` property as well as code. This message is for debugging purposes and is not be meant to be displayed to the user. Common error codes are defined in [GraphErrorCode.cs](../src/Microsoft.Graph/Enums/GraphErrorCode.cs).
Each error object has a `Message` property as well as code. This message is for debugging purposes and is not meant to be displayed to the user. Common error codes are defined in [GraphErrorCode.cs](../src/Microsoft.Graph/Enums/GraphErrorCode.cs).
7 changes: 3 additions & 4 deletions docs/tokencredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ User me = await graphClient.Me.GetAsync();

## 4. ClientSecretCredential

This credential class provides the [Client credentials authentication flow using an app secret](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client secret and can be used as follows.
The device code flow enables sign in to devices by way of another device.
This credential class provides the [Client credentials authentication flow using an app secret](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) and similar use to the **deprecated Client Credential AuthProvider** with the use of a client secret and can be used as follows.

```cs
string[] scopes = {"https://graph.microsoft.com/.default"};
Expand All @@ -75,7 +74,7 @@ User me = await graphClient.Users["user-id"].GetAsync();

## 5. ClientCertificateCredential

This credential class provides the [Client credentials authentication flow using an certificate](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client certificate and can be used as follows.
This credential class provides the [Client credentials authentication flow using a certificate](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client certificate and can be used as follows.

```cs
string[] scopes = {"https://graph.microsoft.com/.default"};
Expand Down Expand Up @@ -110,7 +109,7 @@ It is also useful to know that Azure.Identity provides other TokenCredentials th

## 1. EnvironmentCredential

This credential enables the used of defined environment variables to configure authentication. The environment variables used are as follows.
This credential enables the use of defined environment variables to configure authentication. The environment variables used are as follows.

- AZURE_TENANT_ID - The Azure Active Directory tenant(directory) ID.
- AZURE_CLIENT_ID - The client(application) ID of an App Registration in the tenant.
Expand Down