Skip to content

Instantly share code, notes, and snippets.

View kapozade's full-sized avatar
🎯
focused on sth really matters..

Onur Kapçık kapozade

🎯
focused on sth really matters..
View GitHub Profile
@kapozade
kapozade / squah.md
Created August 11, 2020 11:24 — forked from shellkore/squah.md
squash your commits

SQUASH

Whenever you want to squash last commits in a single commit:-

first check your log

git log

CASE 1: your head is at the commit in which you want others to be squashed

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement">
<!-- Enables Federated Auth -->
<settings>
<setting name="FederatedAuthentication.Enabled">
<patch:attribute name="value">true</patch:attribute>
</setting>
</settings>
using Sitecore.Owin.Authentication.Configuration;
using Sitecore.Owin.Authentication.Identity;
using Sitecore.Owin.Authentication.Services;
using System;
using Microsoft.AspNet.Identity.Owin;
namespace Foundation.Authentication
{
public class CreateUniqueUser : DefaultExternalUserBuilder
{
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Protocols;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Notifications;
using Microsoft.Owin.Security.OpenIdConnect;
using Owin;
using Sitecore.Owin.Authentication.Configuration;
using Sitecore.Owin.Authentication.Pipelines.IdentityProviders;