Skip to content

Instantly share code, notes, and snippets.

View ArwynFr's full-sized avatar

ArwynFr ArwynFr

View GitHub Profile
@ArwynFr
ArwynFr / !!README.adoc
Last active February 1, 2025 01:49
Update TSClient certificate

Update TSClient certificate

Commande pour changer le certificat présenté lors d’un accès MSTSC dans Windows 11 :

$RDPInstance = Get-CimInstance -ClassName Win32_TSGeneralSetting -Namespace ROOT\CIMV2\TerminalServices
Set-CimInstance -CimInstance $RDPInstance -Property @{ SSLCertificateSHA1Hash = $cert.Thumbprint } -PassThru
Note
le certificat doit être dans Cert:\LocalMachine\My
@ArwynFr
ArwynFr / !!README.adoc
Last active October 9, 2023 11:39
Add OIDC+PKCE to swagger UI

OIDC+PKCE authentication on Swagger UI

This Gist contains code that allows an ASP.NET 7 WebAPI with Swashbuckle OpenAPI Swagger UI to authenticate agains a PKCE enabled OIDC provider.

It was tested with the following libraries :

  • Swashbuckle.AspNetCore 6.5.0

@ArwynFr
ArwynFr / !!README.adoc
Last active October 9, 2023 11:40
OpenApi ASP.NET Core OData 8

ASP.NET Core OData 8

This Gist contains code which allows ApiExplorer + ApiVersioning + OData 8 + Swashbuckle to work together

It was tested with the following libraries:

  • Asp.Vesioning.OData.ApiExplorer 7.0.2

  • Swashbuckle.AspNetCore 6.5.0

  • Microsoft.AspNetCore.OData 8.0.12

@ArwynFr
ArwynFr / !!README.adoc
Last active October 9, 2023 11:50
armake2 dockerfile

Armake2 Dockerfile archive

This gist contains armake2 Dockerfiles after I deleted the public repo