AviNessimian / maui-blazor-app

.NET MAUI Blazor app Authentication with Idntityserver4 / duende

Home Page:https://scuticode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET MAUI Blazor app Authentication with Idntityserver4 / duende

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.

IdntityServer Client Configuration

    new ClientEntity
    {
        ClientId = "mobile-app",
        AllowedGrantTypes = GrantTypes.Code,
        RequirePkce = true,
        RequireClientSecret = false,
        AllowedScopes =
        {
            IdentityServerConstants.StandardScopes.OpenId,
            IdentityServerConstants.StandardScopes.Profile
        },
        RedirectUris = { "myapp://" },
        PostLogoutRedirectUris = { "myapp://" }
    }

About

.NET MAUI Blazor app Authentication with Idntityserver4 / duende

https://scuticode.com


Languages

Language:C# 54.7%Language:HTML 24.1%Language:CSS 21.2%