8000 GitHub - qianshipoi/vue3-oidc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qianshipoi/vue3-oidc

Repository files navigation

Vue 3 + OIDC + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended Setup

OIDC Server Application Config

 if (await manager.FindByClientIdAsync("vueclient") is null)
 {
     await manager.CreateAsync(new OpenIddictApplicationDescriptor
     {
         ClientId = "vueclient",
         ConsentType = ConsentTypes.Explicit,
         DisplayName = "vue client PKCE",
         DisplayNames =
         {
             [CultureInfo.GetCultureInfo("fr-FR")] = "Application cliente MVC"
         },
         PostLogoutRedirectUris =
         {
             new Uri("https://localhost:5173"),
             new Uri("https://localhost:5173/logout-callback")
         },
         RedirectUris =
         {
             new Uri("https://localhost:5173/callback")
         },
         Permissions =
         {
             Permissions.Endpoints.Authorization,
             Permissions.Endpoints.Logout,
             Permissions.Endpoints.Token,
             Permissions.Endpoints.Revocation,
             Permissions.GrantTypes.AuthorizationCode,
             Permissions.GrantTypes.RefreshToken,
             Permissions.ResponseTypes.Code,
             Permissions.Scopes.Email,
             Permissions.Scopes.Profile,
             Permissions.Scopes.Roles,
             Permissions.Prefixes.Scope + "dataEventRecords"
         },
         Requirements =
         {
             Requirements.Features.ProofKeyForCodeExchange
         }
     });
 }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0