This sample shows how to use the IdentityModel.OidcClient FOSS library. to connect a .NET MAUI app to IdentityServer
start browser-based authentication flows, which listen for a callback to a specific URL registered to the app.
new ClientEntity
{
ClientId = "mobile-app",
AllowedGrantTypes = GrantTypes.Code,
RequirePkce = true,
RequireClientSecret = false,
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile
},
RedirectUris = { "myapp://" },
PostLogoutRedirectUris = { "myapp://" }
}