-
Notifications
You must be signed in to change notification settings - Fork 6
Abstractions is now fully AoT compatible and durability ensured by a new AotTest #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/Microsoft.Identity.Abstractions/Microsoft.Identity.Abstractions.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Abstractions/Microsoft.Identity.Abstractions.csproj
Show resolved
Hide resolved
test/Microsoft.Identity.Abstractions.AotTests/Microsoft.Identity.Abstractions.AotTests.csproj
Outdated
Show resolved
Hide resolved
…tions.csproj Co-authored-by: Keegan <[email protected]> Signed-off-by: Jean-Marc Prieur <[email protected]>
…tions.csproj Co-authored-by: Keegan <[email protected]> Signed-off-by: Jean-Marc Prieur <[email protected]>
Add more testing
| /// <remarks>BE CAREFUL when you serialize a credential description. The secrets it contains | ||
| /// will be serialized too depending on the CredentialSource (ClientSecret, Base64Encoded, and Password)</remarks> | ||
| [RequiresDynamicCode("Uses JsonSerializer which may require dynamic code generation for certain types.")] | ||
| [RequiresUnreferencedCode("Uses JsonSerializer which may require dynamic code generation for certain types.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For DecryptKeysAuthenticationOptions, we could check if the options has a TypeInfoResolver, and if it doesn't then we could clone the options, and create a source generated context.
| /// of credential information based on SourceType. | ||
| /// </summary> | ||
| /// <remarks>BE CAREFUL when you serialize a credential description. The secrets it contains | ||
| /// will be serialized too depending on the CredentialSource (ClientSecret, Base64Encoded, and Password)</remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should expand the docs that for CustomSignedAssertionProviderData, JsonSerializerOptions.TypeInfoResolver can be used.
| <PublishAot>true</PublishAot> | ||
| <StartupObject>Mise.Configuration.Aot.Tests.Program</StartupObject> | ||
| <EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator> | ||
| <!--<NoWarn>SYSLIB1100;SYSLIB1101;SYSLIB0026;SYSLIB0027;SYSLIB0028</NoWarn>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!--<NoWarn>SYSLIB1100;SYSLIB1101;SYSLIB0026;SYSLIB0027;SYSLIB0028</NoWarn>--> |
Fixes #186 186
Note that with C#15, we can do better with an extension property:
// Extension property (C# 15)
implicit extension XExtensions for X
{
public X509Certificate2 Certificate
{
get => this.GetCertificate();
set => this.SetCertificate(value);
}
}