{"payload":{"allShortcutsEnabled":false,"fileTree":{"src/UI":{"items":[{"name":"Areas","path":"src/UI/Areas","contentType":"directory"},{"name":"wwwroot","path":"src/UI/wwwroot","contentType":"directory"},{"name":"IdentityBuilderUIExtensions.cs","path":"src/UI/IdentityBuilderUIExtensions.cs","contentType":"file"},{"name":"IdentityDefaultUIAttribute.cs","path":"src/UI/IdentityDefaultUIAttribute.cs","contentType":"file"},{"name":"IdentityDefaultUIConfigureOptions.cs","path":"src/UI/IdentityDefaultUIConfigureOptions.cs","contentType":"file"},{"name":"IdentityPageModelConvention.cs","path":"src/UI/IdentityPageModelConvention.cs","contentType":"file"},{"name":"IdentityServiceCollectionUIExtensions.cs","path":"src/UI/IdentityServiceCollectionUIExtensions.cs","contentType":"file"},{"name":"Microsoft.AspNetCore.Identity.UI.csproj","path":"src/UI/Microsoft.AspNetCore.Identity.UI.csproj","contentType":"file"},{"name":"THIRD-PARTY-NOTICES","path":"src/UI/THIRD-PARTY-NOTICES","contentType":"file"},{"name":"baseline.netcore.json","path":"src/UI/baseline.netcore.json","contentType":"file"}],"totalCount":10},"src":{"items":[{"name":"AspNetCoreCompat","path":"src/AspNetCoreCompat","contentType":"directory"},{"name":"Core","path":"src/Core","contentType":"directory"},{"name":"EF","path":"src/EF","contentType":"directory"},{"name":"Identity","path":"src/Identity","contentType":"directory"},{"name":"Service.Abstractions","path":"src/Service.Abstractions","contentType":"directory"},{"name":"Service.AzureKeyVault","path":"src/Service.AzureKeyVault","contentType":"directory"},{"name":"Service.Core","path":"src/Service.Core","contentType":"directory"},{"name":"Service.Diagnostics","path":"src/Service.Diagnostics","contentType":"directory"},{"name":"Service.EF","path":"src/Service.EF","contentType":"directory"},{"name":"Service.IntegratedWebClient","path":"src/Service.IntegratedWebClient","contentType":"directory"},{"name":"Service.Mvc","path":"src/Service.Mvc","contentType":"directory"},{"name":"Service.Specification.Tests","path":"src/Service.Specification.Tests","contentType":"directory"},{"name":"Service","path":"src/Service","contentType":"directory"},{"name":"Specification.Tests","path":"src/Specification.Tests","contentType":"directory"},{"name":"Stores","path":"src/Stores","contentType":"directory"},{"name":"UI","path":"src/UI","contentType":"directory"},{"name":"Directory.Build.props","path":"src/Directory.Build.props","contentType":"file"}],"totalCount":17},"":{"items":[{"name":"build","path":"build","contentType":"directory"},{"name":"samples","path":"samples","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".appveyor.yml","path":".appveyor.yml","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Directory.Build.props","path":"Directory.Build.props","contentType":"file"},{"name":"Directory.Build.targets","path":"Directory.Build.targets","contentType":"file"},{"name":"Identity.sln","path":"Identity.sln","contentType":"file"},{"name":"IdentityCore.sln","path":"IdentityCore.sln","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"NuGet.config","path":"NuGet.config","contentType":"file"},{"name":"NuGetPackageVerifier.json","path":"NuGetPackageVerifier.json","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"Settings.StyleCop","path":"Settings.StyleCop","contentType":"file"},{"name":"build.cmd","path":"build.cmd","contentType":"file"},{"name":"build.sh","path":"build.sh","contentType":"file"},{"name":"korebuild-lock.txt","path":"korebuild-lock.txt","contentType":"file"},{"name":"korebuild.json","path":"korebuild.json","contentType":"file"},{"name":"run.cmd","path":"run.cmd","contentType":"file"},{"name":"run.ps1","path":"run.ps1","contentType":"file"},{"name":"run.sh","path":"run.sh","contentType":"file"},{"name":"version.props","path":"version.props","contentType":"file"}],"totalCount":26}},"fileTreeProcessingTime":14.595423,"foldersToFetch":[],"repo":{"id":16491880,"defaultBranch":"master","name":"Identity","ownerLogin":"aspnet","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-02-03T20:23:53.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/6476660?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"2634637fd535b229762b5e4a49cdd128f4d8f12e","listCacheKey":"v0:1543994058.0","canEdit":false,"refType":"tree","currentOid":"2634637fd535b229762b5e4a49cdd128f4d8f12e"},"path":"src/UI/IdentityServiceCollectionUIExtensions.cs","currentUser":null,"blob":{"rawLines":["// Copyright (c) .NET Foundation. All rights reserved.","// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.","","using System;","using System.IO;","using System.Linq;","using System.Reflection;","using Microsoft.AspNetCore.Identity;","using Microsoft.AspNetCore.Identity.UI;","using Microsoft.AspNetCore.Identity.UI.Services;","using Microsoft.AspNetCore.Mvc.ApplicationParts;","using Microsoft.Extensions.DependencyInjection.Extensions;","","namespace Microsoft.Extensions.DependencyInjection","{"," /// "," /// Default UI extensions to ."," /// "," public static class IdentityServiceCollectionUIExtensions"," {"," /// "," /// Adds a set of common identity services to the application, including a default UI, token providers,"," /// and configures authentication to use identity cookies."," /// "," /// "," /// In order to use the default UI, the application must be using ,"," /// and contain a _LoginPartial partial view that"," /// can be found by the application."," /// "," /// The ."," /// The ."," public static IdentityBuilder AddDefaultIdentity(this IServiceCollection services) where TUser : class"," => services.AddDefaultIdentity(_ => { });",""," /// "," /// Adds a set of common identity services to the application, including a default UI, token providers,"," /// and configures authentication to use identity cookies."," /// "," /// "," /// In order to use the default UI, the application must be using ,"," /// and contain a _LoginPartial partial view that"," /// can be found by the application."," /// "," /// The ."," /// Configures the ."," /// The ."," public static IdentityBuilder AddDefaultIdentity(this IServiceCollection services, Action configureOptions) where TUser : class"," {"," services.AddAuthentication(o =>"," {"," o.DefaultScheme = IdentityConstants.ApplicationScheme;"," o.DefaultSignInScheme = IdentityConstants.ExternalScheme;"," })"," .AddIdentityCookies(o => { });",""," return services.AddIdentityCore(o =>"," {"," o.Stores.MaxLengthForKeys = 128;"," configureOptions?.Invoke(o);"," })"," .AddDefaultUI()"," .AddDefaultTokenProviders();"," }"," }","}"],"stylingDirectives":[[{"start":1,"end":55,"cssClass":"pl-c"}],[{"start":0,"end":111,"cssClass":"pl-c"}],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-kos"},{"start":15,"end":16,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-kos"},{"start":17,"end":18,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-kos"},{"start":23,"end":24,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":35,"end":36,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":35,"end":36,"cssClass":"pl-kos"},{"start":38,"end":39,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":35,"end":36,"cssClass":"pl-kos"},{"start":38,"end":39,"cssClass":"pl-kos"},{"start":47,"end":48,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":30,"end":31,"cssClass":"pl-kos"},{"start":47,"end":48,"cssClass":"pl-kos"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":46,"end":47,"cssClass":"pl-kos"},{"start":57,"end":58,"cssClass":"pl-kos"}],[],[{"start":0,"end":9,"cssClass":"pl-k"},{"start":19,"end":20,"cssClass":"pl-kos"},{"start":30,"end":31,"cssClass":"pl-kos"}],[{"start":0,"end":1,"cssClass":"pl-kos"}],[{"start":4,"end":17,"cssClass":"pl-c"}],[{"start":4,"end":66,"cssClass":"pl-c"}],[{"start":4,"end":18,"cssClass":"pl-c"}],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":17,"cssClass":"pl-k"},{"start":11,"end":17,"cssClass":"pl-k"},{"start":18,"end":23,"cssClass":"pl-k"},{"start":24,"end":61,"cssClass":"pl-smi"}],[{"start":4,"end":5,"cssClass":"pl-kos"}],[{"start":8,"end":21,"cssClass":"pl-c"}],[{"start":8,"end":111,"cssClass":"pl-c"}],[{"start":8,"end":66,"cssClass":"pl-c"}],[{"start":8,"end":22,"cssClass":"pl-c"}],[{"start":8,"end":21,"cssClass":"pl-c"}],[{"start":8,"end":113,"cssClass":"pl-c"}],[{"start":8,"end":111,"cssClass":"pl-c"}],[{"start":8,"end":44,"cssClass":"pl-c"}],[{"start":8,"end":22,"cssClass":"pl-c"}],[{"start":8,"end":80,"cssClass":"pl-c"}],[{"start":8,"end":68,"cssClass":"pl-c"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":21,"cssClass":"pl-k"},{"start":15,"end":21,"cssClass":"pl-k"},{"start":38,"end":56,"cssClass":"pl-en"},{"start":56,"end":57,"cssClass":"pl-c1"},{"start":57,"end":62,"cssClass":"pl-c1"},{"start":62,"end":63,"cssClass":"pl-c1"},{"start":63,"end":64,"cssClass":"pl-kos"},{"start":64,"end":68,"cssClass":"pl-k"},{"start":69,"end":87,"cssClass":"pl-smi"},{"start":88,"end":96,"cssClass":"pl-s1"},{"start":96,"end":97,"cssClass":"pl-kos"},{"start":98,"end":103,"cssClass":"pl-k"},{"start":104,"end":109,"cssClass":"pl-c1"},{"start":110,"end":111,"cssClass":"pl-c1"},{"start":112,"end":117,"cssClass":"pl-k"}],[{"start":12,"end":14,"cssClass":"pl-c1"},{"start":23,"end":24,"cssClass":"pl-kos"},{"start":24,"end":42,"cssClass":"pl-smi"},{"start":42,"end":43,"cssClass":"pl-c1"},{"start":43,"end":48,"cssClass":"pl-smi"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":49,"end":50,"cssClass":"pl-kos"},{"start":50,"end":58,"cssClass":"pl-s1"},{"start":52,"end":54,"cssClass":"pl-c1"},{"start":55,"end":56,"cssClass":"pl-kos"},{"start":57,"end":58,"cssClass":"pl-kos"},{"start":58,"end":59,"cssClass":"pl-kos"},{"start":59,"end":60,"cssClass":"pl-kos"}],[],[{"start":8,"end":21,"cssClass":"pl-c"}],[{"start":8,"end":111,"cssClass":"pl-c"}],[{"start":8,"end":66,"cssClass":"pl-c"}],[{"start":8,"end":22,"cssClass":"pl-c"}],[{"start":8,"end":21,"cssClass":"pl-c"}],[{"start":8,"end":113,"cssClass":"pl-c"}],[{"start":8,"end":111,"cssClass":"pl-c"}],[{"start":8,"end":44,"cssClass":"pl-c"}],[{"start":8,"end":22,"cssClass":"pl-c"}],[{"start":8,"end":80,"cssClass":"pl-c"}],[{"start":8,"end":96,"cssClass":"pl-c"}],[{"start":8,"end":68,"cssClass":"pl-c"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":21,"cssClass":"pl-k"},{"start":15,"end":21,"cssClass":"pl-k"},{"start":38,"end":56,"cssClass":"pl-en"},{"start":56,"end":57,"cssClass":"pl-c1"},{"start":57,"end":62,"cssClass":"pl-c1"},{"start":62,"end":63,"cssClass":"pl-c1"},{"start":63,"end":64,"cssClass":"pl-kos"},{"start":64,"end":68,"cssClass":"pl-k"},{"start":69,"end":87,"cssClass":"pl-smi"},{"start":88,"end":96,"cssClass":"pl-s1"},{"start":96,"end":97,"cssClass":"pl-kos"},{"start":98,"end":104,"cssClass":"pl-smi"},{"start":104,"end":105,"cssClass":"pl-c1"},{"start":105,"end":120,"cssClass":"pl-smi"},{"start":120,"end":121,"cssClass":"pl-c1"},{"start":122,"end":138,"cssClass":"pl-s1"},{"start":138,"end":139,"cssClass":"pl-kos"},{"start":140,"end":145,"cssClass":"pl-k"},{"start":146,"end":151,"cssClass":"pl-c1"},{"start":152,"end":153,"cssClass":"pl-c1"},{"start":154,"end":159,"cssClass":"pl-k"}],[{"start":8,"end":9,"cssClass":"pl-kos"}],[{"start":20,"end":21,"cssClass":"pl-kos"},{"start":21,"end":38,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-kos"},{"start":39,"end":43,"cssClass":"pl-s1"},{"start":41,"end":43,"cssClass":"pl-c1"}],[{"start":0,"end":13,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-kos"}],[{"start":0,"end":70,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-kos"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":51,"end":52,"cssClass":"pl-kos"},{"start":69,"end":70,"cssClass":"pl-kos"}],[{"start":0,"end":73,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-kos"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":57,"end":58,"cssClass":"pl-kos"},{"start":72,"end":73,"cssClass":"pl-kos"}],[{"start":0,"end":13,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-kos"},{"start":13,"end":14,"cssClass":"pl-kos"}],[{"start":12,"end":13,"cssClass":"pl-kos"},{"start":13,"end":31,"cssClass":"pl-en"},{"start":31,"end":32,"cssClass":"pl-kos"},{"start":32,"end":40,"cssClass":"pl-s1"},{"start":34,"end":36,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-kos"},{"start":39,"end":40,"cssClass":"pl-kos"},{"start":40,"end":41,"cssClass":"pl-kos"},{"start":41,"end":42,"cssClass":"pl-kos"}],[],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":28,"end":43,"cssClass":"pl-smi"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":49,"cssClass":"pl-smi"},{"start":49,"end":50,"cssClass":"pl-c1"},{"start":50,"end":51,"cssClass":"pl-kos"},{"start":51,"end":55,"cssClass":"pl-s1"},{"start":53,"end":55,"cssClass":"pl-c1"}],[{"start":0,"end":13,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-kos"}],[{"start":0,"end":48,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-kos"},{"start":24,"end":25,"cssClass":"pl-kos"},{"start":42,"end":43,"cssClass":"pl-c1"},{"start":44,"end":47,"cssClass":"pl-c1"},{"start":47,"end":48,"cssClass":"pl-kos"}],[{"start":0,"end":44,"cssClass":"pl-s1"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":33,"end":34,"cssClass":"pl-kos"},{"start":40,"end":41,"cssClass":"pl-kos"},{"start":42,"end":43,"cssClass":"pl-kos"},{"start":43,"end":44,"cssClass":"pl-kos"}],[{"start":0,"end":13,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-kos"},{"start":13,"end":14,"cssClass":"pl-kos"}],[{"start":16,"end":17,"cssClass":"pl-kos"},{"start":17,"end":29,"cssClass":"pl-en"},{"start":29,"end":30,"cssClass":"pl-kos"},{"start":30,"end":31,"cssClass":"pl-kos"}],[{"start":16,"end":17,"cssClass":"pl-kos"},{"start":17,"end":41,"cssClass":"pl-en"},{"start":41,"end":42,"cssClass":"pl-kos"},{"start":42,"end":43,"cssClass":"pl-kos"},{"start":43,"end":44,"cssClass":"pl-kos"}],[{"start":8,"end":9,"cssClass":"pl-kos"}],[{"start":4,"end":5,"cssClass":"pl-kos"}],[{"start":0,"end":1,"cssClass":"pl-kos"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/aspnet/Identity/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"IdentityServiceCollectionUIExtensions.cs","displayUrl":"https://github.com/aspnet/Identity/blob/2634637fd535b229762b5e4a49cdd128f4d8f12e/src/UI/IdentityServiceCollectionUIExtensions.cs?raw=true","headerInfo":{"blobSize":"3 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"d625480","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Faspnet%2FIdentity%2Fblob%2F2634637fd535b229762b5e4a49cdd128f4d8f12e%2Fsrc%2FUI%2FIdentityServiceCollectionUIExtensions.cs","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"65","truncatedSloc":"61"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C#","languageID":42,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/aspnet/Identity/blob/2634637fd535b229762b5e4a49cdd128f4d8f12e/src/UI/IdentityServiceCollectionUIExtensions.cs","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/aspnet/Identity/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/aspnet/Identity/raw/2634637fd535b229762b5e4a49cdd128f4d8f12e/src/UI/IdentityServiceCollectionUIExtensions.cs","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"IdentityServiceCollectionUIExtensions","kind":"class","ident_start":662,"ident_end":699,"extent_start":642,"extent_end":3066,"fully_qualified_name":"IdentityServiceCollectionUIExtensions","ident_utf16":{"start":{"line_number":18,"utf16_col":24},"end":{"line_number":18,"utf16_col":61}},"extent_utf16":{"start":{"line_number":18,"utf16_col":4},"end":{"line_number":63,"utf16_col":5}}},{"name":"AddDefaultIdentity","kind":"method","ident_start":1434,"ident_end":1452,"extent_start":1404,"extent_end":1574,"fully_qualified_name":"IdentityServiceCollectionUIExtensions::AddDefaultIdentity","ident_utf16":{"start":{"line_number":31,"utf16_col":38},"end":{"line_number":31,"utf16_col":56}},"extent_utf16":{"start":{"line_number":31,"utf16_col":8},"end":{"line_number":32,"utf16_col":60}}},{"name":"AddDefaultIdentity","kind":"method","ident_start":2401,"ident_end":2419,"extent_start":2371,"extent_end":3060,"fully_qualified_name":"IdentityServiceCollectionUIExtensions::AddDefaultIdentity","ident_utf16":{"start":{"line_number":46,"utf16_col":38},"end":{"line_number":46,"utf16_col":56}},"extent_utf16":{"start":{"line_number":46,"utf16_col":8},"end":{"line_number":62,"utf16_col":9}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/aspnet/Identity/branches":{"post":"JlN0iVeOHo_p02kfOzBb2dfO5IY1BoiL1pjGNjeHBsPkaTK4EdEZJHiCT4m7awHWsk1gwj3-JtwQ_55K3yfosg"},"/repos/preferences":{"post":"MtkKNA4nqN9ObkxDX2lgtl91F9ldd5WcDzVZMPSvo1_ll6VpdjWkGPGl5KIgWTWW3xmLOS93hb82RLCxrmPG9g"}}},"title":"Identity/src/UI/IdentityServiceCollectionUIExtensions.cs at 2634637fd535b229762b5e4a49cdd128f4d8f12e · aspnet/Identity"}