Azure B2C, OAuth2 and a Github App

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • active-directory-b2c-custom-policy-starterpack

    Azure AD B2C now allows uploading of a Custom Policy which allows full control and customization of the Identity Experience Framework

  • Firstly you will want to download the TrustFrameworkBase.

  • oauth

  • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/online/cpim/schemas/2013/06" PolicySchemaVersion="0.3.0.0" TenantId="yourtenant.onmicrosoft.com" PolicyId="B2C_1A_TrustFrameworkExtensions" PublicPolicyUri="http://yourtenant.onmicrosoft.com/B2C_1A_TrustFrameworkExtensions"> yourtenant.onmicrosoft.com B2C_1A_TrustFrameworkBase Id="numericUserId"> Numeric user Identifier long Id="identityProviderAccessToken"> Identity Provider Access Token string Stores the access token of the identity provider. Id="CreateIssuerUserId" TransformationMethod="ConvertNumberToStringClaim"> ClaimTypeReferenceId="numericUserId" TransformationClaimType="inputClaim" /> ClaimTypeReferenceId="issuerUserId" TransformationClaimType="outputClaim" /> github.com GitHub Id="GitHub-OAUTH2"> GitHub Name="OAuth2" /> Key="ProviderName">github.com Key="authorization_endpoint">https://github.com/login/oauth/authorize Key="AccessTokenEndpoint">https://github.com/login/oauth/access_token Key="ClaimsEndpoint">https://api.github.com/user Key="HttpBinding">GET Key="BearerTokenTransmissionMethod">AuthorizationHeader Key="UsePolicyInRedirectUri">0 Key="UserAgentForClaimsExchange">CPIM-Basic/{tenant}/{policy} Key="client_id">YOUR GITHUB APP CLIENT ID Id="client_secret" StorageReferenceId="B2C_1A_GitHubAppSecret"/> /> ClaimTypeReferenceId="displayName" PartnerClaimType="name" /> ClaimTypeReferenceId="email" PartnerClaimType="email" /> ClaimTypeReferenceId="numericUserId" PartnerClaimType="id" /> ClaimTypeReferenceId="issuerUserId" /> ClaimTypeReferenceId="identityProviderAccessToken" PartnerClaimType="{oauth2:access_token}" /> ClaimTypeReferenceId="identityProvider" DefaultValue="github.com" AlwaysUseDefaultValue="true" /> ClaimTypeReferenceId="authenticationSource" DefaultValue="socialIdpAuthentication" AlwaysUseDefaultValue="true" /> ReferenceId="CreateIssuerUserId" /> ReferenceId="CreateRandomUPNUserName"/> ReferenceId="CreateUserPrincipalName"/> ReferenceId="CreateAlternativeSecurityId"/> ReferenceId="CreateSubjectClaimFromAlternativeSecurityId"/> ReferenceId="SM-SocialLogin" /> Id="GithubSignUpOrSignIn"> Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.signuporsignin"> TargetClaimsExchangeId="GithubExchange" /> Order="2" Type="ClaimsExchange"> Id="GithubExchange" TechnicalProfileReferenceId="GitHub-OAUTH2" /> Order="3" Type="ClaimsExchange"> Id="AADUserReadUsingAlternativeSecurityId" TechnicalProfileReferenceId="AAD-UserReadUsingAlternativeSecurityId-NoError" /> Order="4" Type="ClaimsExchange"> Type="ClaimsExist" ExecuteActionsIf="true"> objectId SkipThisOrchestrationStep Id="SelfAsserted-Social" TechnicalProfileReferenceId="SelfAsserted-Social" /> Order="5" Type="ClaimsExchange"> Type="ClaimsExist" ExecuteActionsIf="true"> objectId SkipThisOrchestrationStep Id="AADUserWrite" TechnicalProfileReferenceId="AAD-UserWriteUsingAlternativeSecurityId" /> Order="6" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" /> ReferenceId="DefaultWeb" />

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • microsoft-authentication-library-for-js

    Microsoft Authentication Library (MSAL) for JS

  • If you are using the Azure MSAL library on your frontend to authenticate with Azure B2C.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts