Skip to content

Instantly share code, notes, and snippets.

@watahani
Created September 24, 2019 09:54
Show Gist options
  • Save watahani/6ee0ffff0f4879b760ba5ab171df7430 to your computer and use it in GitHub Desktop.
Save watahani/6ee0ffff0f4879b760ba5ab171df7430 to your computer and use it in GitHub Desktop.
<ClaimsProvider>
<!-- The following Domain element allows this profile to be used if the request comes with domain_hint
query string parameter, e.g. domain_hint=facebook.com -->
<Domain>yahoo.co.jp</Domain>
<DisplayName>Yahoo! Japan</DisplayName>
<TechnicalProfiles>
<TechnicalProfile Id="Yahoo-OIDCv2">
<!-- The text in the following DisplayName element is shown to the user on the claims provider
selection screen. -->
<DisplayName>Yahoo!</DisplayName>
<Protocol Name="OAuth2" />
<Metadata>
<Item Key="ProviderName">yahoo</Item>
<Item Key="authorization_endpoint">https://auth.login.yahoo.co.jp/yconnect/v2/authorization</Item>
<Item Key="AccessTokenEndpoint">https://auth.login.yahoo.co.jp/yconnect/v2/token</Item>
<Item Key="ClaimsEndpoint">https://userinfo.yahooapis.jp/yconnect/v2/attribute</Item>
<Item Key="response_types">code</Item>
<Item Key="scope">openid profile email</Item>
<Item Key="HttpBinding">POST</Item>
<Item Key="client_id">xxxxxxxxxxxxxxxxxxxx</Item>
</Metadata>
<CryptographicKeys>
<Key Id="client_secret" StorageReferenceId="B2C_1A_YahooAppSecret" />
</CryptographicKeys>
<InputClaims />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="identityProvider" DefaultValue="yahoo.co.jp" />
<OutputClaim ClaimTypeReferenceId="authenticationSource" DefaultValue="socialIdpAuthentication" />
<OutputClaim ClaimTypeReferenceId="issuerUserId" PartnerClaimType="sub" />
<OutputClaim ClaimTypeReferenceId="displayName" PartnerClaimType="name" />
<OutputClaim ClaimTypeReferenceId="email" />
</OutputClaims>
<OutputClaimsTransformations>
<OutputClaimsTransformation ReferenceId="CreateRandomUPNUserName" />
<OutputClaimsTransformation ReferenceId="CreateUserPrincipalName" />
<OutputClaimsTransformation ReferenceId="CreateAlternativeSecurityId" />
<OutputClaimsTransformation ReferenceId="CreateSubjectClaimFromAlternativeSecurityId" />
</OutputClaimsTransformations>
<UseTechnicalProfileForSessionManagement ReferenceId="SM-SocialLogin" />
</TechnicalProfile>
</TechnicalProfiles>
</ClaimsProvider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment