File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
identity-model-oidc-client/samples
WindowsConsoleSystemBrowser Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11## HttpSysConsoleClient Sample
22This sample shows how to use Duende.IdentityModel.OidcClient to build a windows desktop
3- application in .NET 8 . It uses [ manual
3+ application in .NET. It uses [ manual
44mode] ( https://docs.duendesoftware.com/foss/identitymodel.oidcclient/manual/ ) , and listens
55for callbacks on the loopback address with a hard-coded port.
66
77### Description of Implementation
88This sample first creates an
99[ HttpListener] ( https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-net-httplistener )
1010to wait for callbacks from the identity provider at a hard-coded port on the local
11- machine. Then it usesDuende .IdentityModel.OidcClient to prepare the state and url needed to
11+ machine. Then it uses Duende .IdentityModel.OidcClient to prepare the state and url needed to
1212login, using that callback url as the redirect uri. It then opens the system browser to
1313the authorize url by calling ` Process.Start ` and passing the url. After the user
1414authenticates, the system browser redirects to the callback url. The HttpListener receives
@@ -20,4 +20,4 @@ and cleans up its HttpListener.
2020
2121### HTTP.sys
2222HttpListener is built on top of the HTTP.sys, the windows driver that handles http
23- requests.
23+ requests.
Original file line number Diff line number Diff line change 11## NetCoreConsoleClient Sample
22This sample shows how to use Duende.IdentityModel.OidcClient to build a cross platform desktop
3- application in .NET 8 . It uses [ automatic
3+ application in .NET. It uses [ automatic
44mode] ( https://docs.duendesoftware.com/foss/identitymodel.oidcclient/automatic/ ) , where an
55IBrowser implementation describes how to invoke the system browser. This sample's browser
66implementation knows how to open the system browser on Windows, Mac, and Linux (see
@@ -9,7 +9,7 @@ server. See SystemBrowser.cs for the full IBrowser implementation details.
99
1010### Description of Implementation
1111This sample first finds an unused port to use as a callback url where it sets up a minimal
12- kestrel web server listening for callbacks from the identity provider.
12+ kestrel web server listening for callbacks from the identity provider.
1313
1414Then it uses Duende.IdentityModel.OidcClient to begin the login process, passing an
1515instance of the SystemBrowser. Behind the scenes, Duende.IdentityModel.OidcClient prepares
Original file line number Diff line number Diff line change 11## HttpSysConsoleClient Sample
22This sample shows how to use Duende.IdentityModel.OidcClient to build a windows desktop
3- application in .NET 8 . It uses [ manual
3+ application in .NET. It uses [ manual
44mode] ( https://docs.duendesoftware.com/foss/identitymodel.oidcclient/manual/ ) , and listens for
55callbacks on a private-use URI scheme.
66
You can’t perform that action at this time.
0 commit comments