-
Notifications
You must be signed in to change notification settings - Fork 32
/
ITokenAcquirer.xml
102 lines (102 loc) · 8.84 KB
/
ITokenAcquirer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<Type Name="ITokenAcquirer" FullName="Microsoft.Identity.Abstractions.ITokenAcquirer">
<TypeSignature Language="C#" Value="public interface ITokenAcquirer" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ITokenAcquirer" />
<TypeSignature Language="DocId" Value="T:Microsoft.Identity.Abstractions.ITokenAcquirer" />
<TypeSignature Language="VB.NET" Value="Public Interface ITokenAcquirer" />
<TypeSignature Language="F#" Value="type ITokenAcquirer = interface" />
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<AssemblyVersion>3.2.0.0</AssemblyVersion>
<AssemblyVersion>3.2.1.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>5.1.0.0</AssemblyVersion>
<AssemblyVersion>5.3.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>
Interface for the token acquisition service (for instance encapsulating MSAL.NET).
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="GetTokenForAppAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult> GetTokenForAppAsync (string scope, Microsoft.Identity.Abstractions.AcquireTokenOptions? tokenAcquisitionOptions = default, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task`1<class Microsoft.Identity.Abstractions.AcquireTokenResult> GetTokenForAppAsync(string scope, class Microsoft.Identity.Abstractions.AcquireTokenOptions tokenAcquisitionOptions, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Identity.Abstractions.ITokenAcquirer.GetTokenForAppAsync(System.String,Microsoft.Identity.Abstractions.AcquireTokenOptions,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function GetTokenForAppAsync (scope As String, Optional tokenAcquisitionOptions As AcquireTokenOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AcquireTokenResult)" />
<MemberSignature Language="F#" Value="abstract member GetTokenForAppAsync : string * Microsoft.Identity.Abstractions.AcquireTokenOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult>" Usage="iTokenAcquirer.GetTokenForAppAsync (scope, tokenAcquisitionOptions, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="scope" Type="System.String" />
<Parameter Name="tokenAcquisitionOptions" Type="Microsoft.Identity.Abstractions.AcquireTokenOptions" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="scope">The scope requested to access a protected API. For this flow (client credentials), the scope
should be of the form "{ResourceIdUri/.default}" for instance <c>https://management.azure.net/.default</c> or, for Microsoft
Graph, <c>https://graph.microsoft.com/.default</c> as the requested scopes are defined statically with the application registration
in the portal, and cannot be overridden in the application, as you can request a token for only one resource at a time (use
several calls to get tokens for other resources).</param>
<param name="tokenAcquisitionOptions">Options passed-in to create the token acquisition object which calls into MSAL .NET.</param>
<param name="cancellationToken">Cancellation token</param>
<summary>
Acquires an authentication result from the authority configured in the app, for the confidential client itself (not on behalf of a user)
using the client credentials flow. See https://aka.ms/msal-net-client-credentials.
</summary>
<returns>An authentication result for the app itself, based on its scopes.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetTokenForUserAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult> GetTokenForUserAsync (System.Collections.Generic.IEnumerable<string> scopes, Microsoft.Identity.Abstractions.AcquireTokenOptions? tokenAcquisitionOptions = default, System.Security.Claims.ClaimsPrincipal? user = default, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task`1<class Microsoft.Identity.Abstractions.AcquireTokenResult> GetTokenForUserAsync(class System.Collections.Generic.IEnumerable`1<string> scopes, class Microsoft.Identity.Abstractions.AcquireTokenOptions tokenAcquisitionOptions, class System.Security.Claims.ClaimsPrincipal user, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Identity.Abstractions.ITokenAcquirer.GetTokenForUserAsync(System.Collections.Generic.IEnumerable{System.String},Microsoft.Identity.Abstractions.AcquireTokenOptions,System.Security.Claims.ClaimsPrincipal,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function GetTokenForUserAsync (scopes As IEnumerable(Of String), Optional tokenAcquisitionOptions As AcquireTokenOptions = Nothing, Optional user As ClaimsPrincipal = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AcquireTokenResult)" />
<MemberSignature Language="F#" Value="abstract member GetTokenForUserAsync : seq<string> * Microsoft.Identity.Abstractions.AcquireTokenOptions * System.Security.Claims.ClaimsPrincipal * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult>" Usage="iTokenAcquirer.GetTokenForUserAsync (scopes, tokenAcquisitionOptions, user, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.AcquireTokenResult></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="scopes" Type="System.Collections.Generic.IEnumerable<System.String>" />
<Parameter Name="tokenAcquisitionOptions" Type="Microsoft.Identity.Abstractions.AcquireTokenOptions" />
<Parameter Name="user" Type="System.Security.Claims.ClaimsPrincipal" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="scopes">Scopes to request for the downstream API to call.</param>
<param name="tokenAcquisitionOptions">Options passed-in to create the token acquisition object which calls into MSAL .NET.</param>
<param name="user">Optional claims principal representing the user. If not provided, will use the signed-in
user (in a web app), or the user for which the token was received (in a web API)
cases where a given account is a guest in other tenants, and you want to acquire tokens for a specific tenant, like where the user is a guest in.</param>
<param name="cancellationToken">Cancellation token</param>
<summary>
Typically used from an ASP.NET Core web app or web API controller. This method gets an access token
for a downstream API on behalf of the user account for which the claims are provided in the current user.
</summary>
<returns>An <see cref="T:Microsoft.Identity.Abstractions.AcquireTokenResult" /> to call on behalf of the user, the downstream API characterized by its scopes.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>