-
Notifications
You must be signed in to change notification settings - Fork 32
/
ICredentialsLoader.xml
149 lines (149 loc) Β· 12.4 KB
/
ICredentialsLoader.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<Type Name="ICredentialsLoader" FullName="Microsoft.Identity.Abstractions.ICredentialsLoader">
<TypeSignature Language="C#" Value="public interface ICredentialsLoader" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ICredentialsLoader" />
<TypeSignature Language="DocId" Value="T:Microsoft.Identity.Abstractions.ICredentialsLoader" />
<TypeSignature Language="VB.NET" Value="Public Interface ICredentialsLoader" />
<TypeSignature Language="F#" Value="type ICredentialsLoader = 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>
Contract for credential loaders, implemented by classes like the DefaultCertificateLoader or the DefaultCredentialLoader
in Microsoft.Identity.Web. Credential loaders are used to load credentials from a <see cref="T:Microsoft.Identity.Abstractions.CredentialDescription" />, the result
is then in the <see cref="P:Microsoft.Identity.Abstractions.CredentialDescription.CachedValue" /> property.
Credential loaders constitute an extensibility point. They delegate to credential source loaders, which are specified in the <see cref="P:Microsoft.Identity.Abstractions.ICredentialsLoader.CredentialSourceLoaders" />
collection, choosing the one which <see cref="P:Microsoft.Identity.Abstractions.ICredentialSourceLoader.CredentialSource" /> matches the credential source of the
credential description to load.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="CredentialSourceLoaders">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IDictionary<Microsoft.Identity.Abstractions.CredentialSource,Microsoft.Identity.Abstractions.ICredentialSourceLoader> CredentialSourceLoaders { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<valuetype Microsoft.Identity.Abstractions.CredentialSource, class Microsoft.Identity.Abstractions.ICredentialSourceLoader> CredentialSourceLoaders" />
<MemberSignature Language="DocId" Value="P:Microsoft.Identity.Abstractions.ICredentialsLoader.CredentialSourceLoaders" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CredentialSourceLoaders As IDictionary(Of CredentialSource, ICredentialSourceLoader)" />
<MemberSignature Language="F#" Value="member this.CredentialSourceLoaders : System.Collections.Generic.IDictionary<Microsoft.Identity.Abstractions.CredentialSource, Microsoft.Identity.Abstractions.ICredentialSourceLoader>" Usage="Microsoft.Identity.Abstractions.ICredentialsLoader.CredentialSourceLoaders" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IDictionary<Microsoft.Identity.Abstractions.CredentialSource,Microsoft.Identity.Abstractions.ICredentialSourceLoader></ReturnType>
</ReturnValue>
<Docs>
<summary>
Dictionary of credential source loaders per credential source. Your application can add more to
process additional credential sources.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LoadCredentialsIfNeededAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task LoadCredentialsIfNeededAsync (Microsoft.Identity.Abstractions.CredentialDescription credentialDescription, Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters? parameters = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task LoadCredentialsIfNeededAsync(class Microsoft.Identity.Abstractions.CredentialDescription credentialDescription, class Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters parameters) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Identity.Abstractions.ICredentialsLoader.LoadCredentialsIfNeededAsync(Microsoft.Identity.Abstractions.CredentialDescription,Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters)" />
<MemberSignature Language="VB.NET" Value="Public Function LoadCredentialsIfNeededAsync (credentialDescription As CredentialDescription, Optional parameters As CredentialSourceLoaderParameters = Nothing) As Task" />
<MemberSignature Language="F#" Value="abstract member LoadCredentialsIfNeededAsync : Microsoft.Identity.Abstractions.CredentialDescription * Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters -> System.Threading.Tasks.Task" Usage="iCredentialsLoader.LoadCredentialsIfNeededAsync (credentialDescription, parameters)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="credentialDescription" Type="Microsoft.Identity.Abstractions.CredentialDescription" />
<Parameter Name="parameters" Type="Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters" />
</Parameters>
<Docs>
<param name="credentialDescription">Description of the credentials to load.</param>
<param name="parameters">Parameters, related to the host application, that the credential source loader can use.</param>
<summary>
Load a given credential description, if needed. This method will leverage the <see cref="P:Microsoft.Identity.Abstractions.ICredentialsLoader.CredentialSourceLoaders" /> to
load the credentials from the description.
</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LoadFirstValidCredentialsAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.CredentialDescription?> LoadFirstValidCredentialsAsync (System.Collections.Generic.IEnumerable<Microsoft.Identity.Abstractions.CredentialDescription> credentialDescriptions, Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters? parameters = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task`1<class Microsoft.Identity.Abstractions.CredentialDescription> LoadFirstValidCredentialsAsync(class System.Collections.Generic.IEnumerable`1<class Microsoft.Identity.Abstractions.CredentialDescription> credentialDescriptions, class Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters parameters) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Identity.Abstractions.ICredentialsLoader.LoadFirstValidCredentialsAsync(System.Collections.Generic.IEnumerable{Microsoft.Identity.Abstractions.CredentialDescription},Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters)" />
<MemberSignature Language="VB.NET" Value="Public Function LoadFirstValidCredentialsAsync (credentialDescriptions As IEnumerable(Of CredentialDescription), Optional parameters As CredentialSourceLoaderParameters = Nothing) As Task(Of CredentialDescription)" />
<MemberSignature Language="F#" Value="abstract member LoadFirstValidCredentialsAsync : seq<Microsoft.Identity.Abstractions.CredentialDescription> * Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters -> System.Threading.Tasks.Task<Microsoft.Identity.Abstractions.CredentialDescription>" Usage="iCredentialsLoader.LoadFirstValidCredentialsAsync (credentialDescriptions, parameters)" />
<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.CredentialDescription></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="credentialDescriptions" Type="System.Collections.Generic.IEnumerable<Microsoft.Identity.Abstractions.CredentialDescription>" />
<Parameter Name="parameters" Type="Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters" />
</Parameters>
<Docs>
<param name="credentialDescriptions">Description of the credentials.</param>
<param name="parameters">Parameters, related to the host application, that the credential source loader can use.</param>
<summary>
Load the first valid credential from the credentials description list. This is useful when you have multiple deployments
(for instance on your developer machine, you can use a certificate from KeyVault, and when deployed in AKS, you use
workload identity federation for AKS. You can express the list of credentials in the appsettings.json file, and this method will
load the most appropriate based on the order.
</summary>
<returns>First valid credential description that could be loaded from the credential description list.
<c>null</c> if none is valid. Otherwise the first <see cref="T:Microsoft.Identity.Abstractions.CredentialDescription" /> that could be loaded.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ResetCredentials">
<MemberSignature Language="C#" Value="public void ResetCredentials (System.Collections.Generic.IEnumerable<Microsoft.Identity.Abstractions.CredentialDescription> credentialDescriptions);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ResetCredentials(class System.Collections.Generic.IEnumerable`1<class Microsoft.Identity.Abstractions.CredentialDescription> credentialDescriptions) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Identity.Abstractions.ICredentialsLoader.ResetCredentials(System.Collections.Generic.IEnumerable{Microsoft.Identity.Abstractions.CredentialDescription})" />
<MemberSignature Language="VB.NET" Value="Public Sub ResetCredentials (credentialDescriptions As IEnumerable(Of CredentialDescription))" />
<MemberSignature Language="F#" Value="abstract member ResetCredentials : seq<Microsoft.Identity.Abstractions.CredentialDescription> -> unit" Usage="iCredentialsLoader.ResetCredentials credentialDescriptions" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Identity.Abstractions</AssemblyName>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="credentialDescriptions" Type="System.Collections.Generic.IEnumerable<Microsoft.Identity.Abstractions.CredentialDescription>" />
</Parameters>
<Docs>
<param name="credentialDescriptions">Description of the credentials.</param>
<summary>
Resets resettable credentials in the credential description list (for instance reset the
certificates so that they can be re-loaded again)
Use, for example, before a retry.
</summary>
<remarks>This method is, for instance, used, in Microsoft.Identity.Web to automatically reload the certificates from
KeyVault, when the certificate was rotated in Azure AD.</remarks>
</Docs>
</Member>
</Members>
</Type>