Home
%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAnd%20then%20we%20add%20a%20new%20Orchestration%20Step%20to%20the%20%22HRD_Internal%22%20User%20Journey%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CORCHESTRATIONSTEP%20order%3D%227%22%20type%3D%22ClaimsExchange%22%20contentdefinitionreferenceid%3D%22api.signuporsignin%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITION%20type%3D%22ClaimEquals%22%20executeactionsif%3D%22false%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3Eidp%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3Eapple%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CACTION%3ESkipThisOrchestrationStep%3C%2FACTION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITION%20type%3D%22ClaimsExist%22%20executeactionsif%3D%22true%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3EobjectId%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CACTION%3ESkipThisOrchestrationStep%3C%2FACTION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCLAIMSEXCHANGES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCLAIMSEXCHANGE%20id%3D%22HintedAppleExchange%22%20technicalprofilereferenceid%3D%22AppleID%22%3E%3C%2FCLAIMSEXCHANGE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FCLAIMSEXCHANGES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FORCHESTRATIONSTEP%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMake%20sure%20that%20you%20align%20the%20step%20order%20accordingly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20previously%20used%20an%20Azure%20Function%20to%20do%20the%20home%20realm%20discovery%20so%20I'm%20continuing%20this%20pattern%20and%20adding%20a%20new%20option%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%2F%2F%3CFONT%3EFor%20AppleID%20accounts%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3Eif%20(email%20%3D%3D%20%22tim%40apple.com%22)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%20%20%20%20%20%20%3CFONT%3Elog.Info(%24%22Identity%20Provider%3A%20Apple%22)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%20request.CreateResponse%3CRESPONSECONTENT%3E(%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HttpStatusCode.OK%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20new%20ResponseContent%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20version%20%3D%20%221.0.0%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20status%20%3D%20(int)%20HttpStatusCode.OK%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20userMessage%20%3D%20%24%22Your%20account%20seems%20to%20be%20an%20Apple%20account.%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20idp%20%3D%20%22apple%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20signInName%20%3D%20email%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%3C%2FRESPONSECONTENT%3E%3C%2FFONT%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CFONT%3Enew%20JsonMediaTypeFormatter()%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22application%2Fjson%22)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3C%2FFONT%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(The%20beautiful%20hardcoding%20approach%20still%20in%20play%20here.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20in%20this%20case%20the%20first%20step%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20528px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123957iF1B97E917CF67804%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_01.png%22%20title%3D%22Apple_IdP_01.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20will%20take%20you%20to%20Apple's%20sign%20in%20screen%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20451px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123958i910798015542DD49%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_02.png%22%20title%3D%22Apple_IdP_02.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20notice%20that%20Apple%20doesn't%20care%20about%20the%20email%20you%20entered%20as%20a%20login_hint%20-%20this%20is%20purely%20to%20drive%20the%20B2C%20logic%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20previously%20consented%2C%20so%20if%20you%20haven't%20things%20will%20look%20slightly%20different%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20631px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123959iB6DF0101504A709E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_03.png%22%20title%3D%22Apple_IdP_03.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20signing%20up%20you%20will%20be%20prompted%20to%20enter%20your%20name%20manually%20(a%20guid%20pre-filled%20for%20display%20name%2C%20but%20this%20can%20be%20changed)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20490px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123960i3E209DD5AE494CBA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_04.png%22%20title%3D%22Apple_IdP_04.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20then%20you%20will%20be%20redirected%20back%20to%20your%20test%20page%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123962i6E409FF6260495AA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_05.png%22%20title%3D%22Apple_IdP_05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%2C%20things%20basically%20work.%20Sort%20of%E2%80%A6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20user%20account%20is%20created%20with%20a%20pseudo-random%20guid%20as%20the%20%22name%22%20attribute.%20(Courtesy%20of%20Apple's%20algorithms.)%20In%20this%20case%20the%20%22user%20name%22%20is%20tim%40apple.com%20(as%20we%20used%20in%20our%20hardcoded%20Azure%20Function%20above).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApple%20doesn't%20include%20the%20email%20in%20the%20claims%2C%20so%20you%20don't%20get%20that%20back%20from%20them%20as%20you%20do%20with%20most%20other%20providers.%20(We%20did%20a%20mapping%20in%20the%20policy%20to%20get%20around%20this.)%20It%20will%20be%20possible%20to%20generate%20site-unique%20guid-based%20email%20addresses%2C%20but%20that%20doesn't%20seem%20to%20work%20as%20expected%20in%20the%20Apple%20setup%20yet.%20This%20also%20means%20that%20some%20other%20things%20might%20break%E2%80%A6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20approach%20I%20used%20before%20for%20doing%20the%20home%20realm%20discovery%20passed%20along%20the%20view%20to%20a%20screen%20where%20you%20can%20choose%20between%20different%20identity%20providers%20when%20you%20enter%20an%20unknown%20email%20address.%20This%20breaks%20when%20returning%20to%20B2C%20(the%20Apple%20SignIn%20itself%20works).%20The%20reason%20is%20that%20we%20assume%20email%20will%20be%20available%20for%20all%20providers%20(%3CEM%3E%3CITEM%20key%3D%22%26quot%3Bsetting.operatingMode%26quot%3B%22%3EEmail%3C%2FITEM%3E%3C%2FEM%3E)%2C%20and%20our%20Apple%20option%20doesn't%20go%20along%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20most%20purposes%20I%20don't%20really%20care%20if%20you%20provide%20your%20real%20email%20address%20or%20not%20when%20signing%20up%20as%20long%20as%20I'm%20doing%20basic%20authentication%20things.%20If%20I'm%20doing%20authorization%20I%20might%20have%20some%20issues%20with%20totally%20anonymous%20identities%2C%20but%20that's%20a%20bigger%20discussion.%20(I'm%20not%20saying%20%3CEM%3Ebill.gates%40gmail.com%3C%2FEM%3Eis%20more%20credible%20for%20that%20purpose.)%20Real%20or%20not%20I%20do%20prefer%20it%20to%20be%20an%20actual%20email%20address%20for%20the%20rest%20of%20the%20flows%20to%20work%2C%20but%20I'm%20not%20putting%20a%20lot%20of%20effort%20into%20this%20before%20knowing%20what%20the%20final%20bits%20from%20Apple%20will%20be%20like.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20updated%20the%20code%20on%20GitHub%2C%20but%20if%20you%20don't%20want%20to%20setup%20Apple%20credentials%20yet%20(it%20requires%20an%20Apple%20Developer%20account)%20you%20can%20provide%20a%20fake%20metadata%20address%20and%20a%20fake%20client%20secret%20as%20the%20value%20of%20the%20B2C_1A_AppleIDAppSecret%20key.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Apple's%20implementation%20remains%20as%20it%20is%20now%20I'm%20not%20ready%20to%20roll%20out%20the%20Azure%20AD%20B2C%20support%20for%20it%2C%20but%20with%20a%20bit%20of%20luck%20things%20will%20change%20to%20the%20better%20before%20September%20and%20we%20can%20improve%20upon%20the%20B2C%20bits%20of%20it%20accordingly.%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-766575%22%20slang%3D%22en-US%22%3E%22Sign%20In%20with%20Apple%22%20Custom%20Policy%20for%20Azure%20AD%20B2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-766575%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3EDisclaimer%3A%20Sign%20In%20with%20Apple%20is%20currently%20a%20preview%20feature.%20All%20things%20were%20working%20as%20described%20upon%20publishing%20of%20this%20article%2C%20but%20things%20may%20have%20changed%20by%20the%20time%20you%20read%20this%20article.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EA%20month%20ago%20Apple%20held%20its%20annual%20Worldwide%20Developers%20Conference%20(WWDC)%20focusing%20on%20improvements%20in%20iOS%20and%20MacOS.%20%3C%2FSPAN%3E%3CSPAN%3EI'm%20n%3C%2FSPAN%3E%3CSPAN%3Eot%20doing%20a%20rehash%20of%20that%20event%20here%2C%20but%20there%20was%20one%20feature%20in%20particular%20that%20was%20interesting%20from%20an%20identity%20perspective%3B%20namely%20%22Sign%20In%20with%20Apple%22.%20Billed%20as%20a%20privacy-focused%20alternative%20to%20signing%20in%20with%20Google%20and%20Facebook%20identities%2C%20Apple%20intends%20to%20make%20this%20a%20more%20popular%20option%20with%20%22nothing%22%20shared%20with%20the%20web%20pages%20that%20are%20embedding%20this.%20Well%2C%20that%20and%20signing%20into%20native%20apps%20where%20developers%20have%20to%20offer%20Apple%20signin%20if%20they%20offer%20third-party%20login%20options.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApple%20has%20received%20some%20criticism%20for%20basing%20their%20efforts%20on%20OpenID%20Connect%20while%20not%20going%20all-in%20and%20make%20the%20implementation%20compliant%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fbitbucket.org%2Fopenid%2Fconnect%2Fsrc%2Fdefault%2FHow-Sign-in-with-Apple-differs-from-OpenID-Connect.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbitbucket.org%2Fopenid%2Fconnect%2Fsrc%2Fdefault%2FHow-Sign-in-with-Apple-differs-from-OpenID-Connect.md%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20a%20fan%20of%20tweaking%20protocols%20like%20this%2C%20and%20prefer%20implementations%20to%20be%20compliant%2C%20but%20I'm%20hoping%20this%20is%20mostly%20a%20preview%20thing%20and%20that%20the%20final%20implementation%20will%20be%20up%20to%20spec.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reception%20around%20the%20internet%20seems%20to%20be%20positive%20from%20the%20user%20side%20of%20things.%20(Not%20that%20the%20average%20user%20is%20all%20that%20concerned%2C%20but%20for%20those%20who%20are%20concerned%20enough%20to%20have%20an%20opinion%20that%20seems%20to%20be%20the%20general%20gist.)%20I%20don't%20disagree%20with%20this%2C%20but%20in%20my%20opinion%20the%20difference%20between%20Apple%20and%20the%20alternatives%20is%20not%20so%20much%20a%20technical%20feat%20as%20it%20is%20about%20policies.%20An%20identity%20provider%20can%20be%20very%20restrictive%20with%20what%20info%20it%20gives%20out%2C%20but%20there's%20no%20doubt%20some%20of%20them%20will%20provide%20a%20lot%20of%20data%20as%20long%20as%20the%20user%20consents%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20of%20the%20first%20things%20I%20asked%20myself%20was%20%22can%20I%20use%20this%20with%20Azure%20AD%20B2C%22%3F%20And%20after%20some%20initial%20lab%20work%20the%20answer%20was%20%22yes%2C%20you%20can%22%20when%20Microsoft%20provided%20clear%20instructions%20on%20how%20to%20do%20this%20with%20built-in%20policies%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure-ad-b2c%2Fsamples%2Ftree%2Fmaster%2Fpolicies%2Fsign-in-with-apple%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fazure-ad-b2c%2Fsamples%2Ftree%2Fmaster%2Fpolicies%2Fsign-in-with-apple%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20Apple%20doesn't%20follow%20the%20protocol%20there%20are%20some%20tweaks%20you%20need%20to%20perform%2C%20but%20following%20the%20steps%20above%20you%20should%20be%20able%20to%20make%20it%20work.%20(To%20be%20fair%20-%20Apple%20never%20said%20they%20followed%20a%20standard%20either.)%20Do%20note%20that%20if%20you're%20testing%20in%20the%20Azure%20Portal%20you%20need%20to%20remove%20%3CEM%3E%26amp%3Bprompt%3Dlogin%3C%2FEM%3Efrom%20the%20URL%20for%20it%20to%20work%20or%20you%20will%20just%20get%20a%20generic%20%22Bad%20request%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20I%20love%20built-in%20policies%20as%20much%20as%20the%20next%20guy%20when%20doing%20exploratory%20testing%2C%20it%20often%20falls%20short%20in%20the%20real%20world%20use%20cases%20so%20the%20bigger%20question%20for%20me%20is%20how%20to%20make%20it%20work%20with%20custom%20policies.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20basing%20myself%20on%20previous%20lab%20work%20and%20the%20following%20code%20sample%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fahelland%2FIdentity-CodeSamples-v2%2Ftree%2Fmaster%2Faad-b2c-custom_policies-dotnet-core%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fgithub.com%2Fahelland%2FIdentity-CodeSamples-v2%2Ftree%2Fmaster%2Faad-b2c-custom_policies-dotnet-core%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20walkthrough%20of%20the%20stuff%20I'm%20adding%20this%20into%20(skippable%20if%20you're%20familiar%20with%20custom%20policies)%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Developer-Community-Blog%2FAdvanced-Home-Realm-Discovery-in-Azure-AD-B2C%2Fba-p%2F482788%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Developer-Community-Blog%2FAdvanced-Home-Realm-Discovery-in-Azure-AD-B2C%2Fba-p%2F482788%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20make%20this%20work%20we%20will%20add%20to%20the%20%22HRD_Internal%22%20custom%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFirst%20you%20need%20to%20add%20a%20%22Claims%20Provider%22%20in%20%3C%2FSPAN%3E%3CSPAN%3EB2C_1A_TrustFrameworkExtensions_Dev.xml%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%3E%3CCLAIMSPROVIDER%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CDOMAIN%3EApple%3C%2FDOMAIN%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CDISPLAYNAME%3EApple%3C%2FDISPLAYNAME%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CTECHNICALPROFILES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CTECHNICALPROFILE%20id%3D%22AppleID%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CDISPLAYNAME%3ESign%20in%20with%20Apple%3C%2FDISPLAYNAME%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPROTOCOL%20name%3D%22OpenIdConnect%22%3E%3C%2FPROTOCOL%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3Bmetadata%26gt%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22client_id%22%3E%25apple-client-id%25%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22UsePolicyInRedirectUri%22%3E0%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22METADATA%22%3E%25apple-metadata-endpoint%25%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22response_types%22%3Ecode%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22scope%22%3Eemail%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22response_mode%22%3Eform_post%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CITEM%20key%3D%22HttpBinding%22%3EPOST%3C%2FITEM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FTECHNICALPROFILE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCRYPTOGRAPHICKEYS%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CKEY%20id%3D%22client_secret%22%20storagereferenceid%3D%22B2C_1A_AppleIDAppSecret%22%3E%3C%2FKEY%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FCRYPTOGRAPHICKEYS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CINPUTCLAIMS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CINPUTCLAIM%20claimtypereferenceid%3D%22email%22%20partnerclaimtype%3D%22login_hint%22%3E%3C%2FINPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FINPUTCLAIMS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22authenticationSource%22%20defaultvalue%3D%22socialIdpAuthentication%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22identityProvider%22%20partnerclaimtype%3D%22iss%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22socialIdpUserId%22%20partnerclaimtype%3D%22sub%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22displayName%22%20partnerclaimtype%3D%22sub%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22givenName%22%20partnerclaimtype%3D%22given_name%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22surName%22%20partnerclaimtype%3D%22family_name%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIM%20claimtypereferenceid%3D%22email%22%3E%3C%2FOUTPUTCLAIM%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FOUTPUTCLAIMS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMSTRANSFORMATIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMSTRANSFORMATION%20referenceid%3D%22CreateRandomUPNUserName%22%3E%3C%2FOUTPUTCLAIMSTRANSFORMATION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMSTRANSFORMATION%20referenceid%3D%22CreateUserPrincipalName%22%3E%3C%2FOUTPUTCLAIMSTRANSFORMATION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMSTRANSFORMATION%20referenceid%3D%22CreateAlternativeSecurityId%22%3E%3C%2FOUTPUTCLAIMSTRANSFORMATION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3COUTPUTCLAIMSTRANSFORMATION%20referenceid%3D%22CreateSubjectClaimFromAlternativeSecurityId%22%3E%3C%2FOUTPUTCLAIMSTRANSFORMATION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FOUTPUTCLAIMSTRANSFORMATIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CUSETECHNICALPROFILEFORSESSIONMANAGEMENT%20referenceid%3D%22SM-SocialLogin%22%3E%3C%2FUSETECHNICALPROFILEFORSESSIONMANAGEMENT%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FTECHNICALPROFILES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FCLAIMSPROVIDER%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAnd%20then%20we%20add%20a%20new%20Orchestration%20Step%20to%20the%20%22HRD_Internal%22%20User%20Journey%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CORCHESTRATIONSTEP%20order%3D%227%22%20type%3D%22ClaimsExchange%22%20contentdefinitionreferenceid%3D%22api.signuporsignin%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITION%20type%3D%22ClaimEquals%22%20executeactionsif%3D%22false%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3Eidp%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3Eapple%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CACTION%3ESkipThisOrchestrationStep%3C%2FACTION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CPRECONDITION%20type%3D%22ClaimsExist%22%20executeactionsif%3D%22true%22%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CVALUE%3EobjectId%3C%2FVALUE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CACTION%3ESkipThisOrchestrationStep%3C%2FACTION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITION%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FPRECONDITIONS%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCLAIMSEXCHANGES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCLAIMSEXCHANGE%20id%3D%22HintedAppleExchange%22%20technicalprofilereferenceid%3D%22AppleID%22%3E%3C%2FCLAIMSEXCHANGE%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FCLAIMSEXCHANGES%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FORCHESTRATIONSTEP%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMake%20sure%20that%20you%20align%20the%20step%20order%20accordingly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20previously%20used%20an%20Azure%20Function%20to%20do%20the%20home%20realm%20discovery%20so%20I'm%20continuing%20this%20pattern%20and%20adding%20a%20new%20option%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%2F%2F%3CFONT%3EFor%20AppleID%20accounts%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3Eif%20(email%20%3D%3D%20%22tim%40apple.com%22)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%20%20%20%20%20%20%3CFONT%3Elog.Info(%24%22Identity%20Provider%3A%20Apple%22)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%20request.CreateResponse%3CRESPONSECONTENT%3E(%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HttpStatusCode.OK%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20new%20ResponseContent%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20version%20%3D%20%221.0.0%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20status%20%3D%20(int)%20HttpStatusCode.OK%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20userMessage%20%3D%20%24%22Your%20account%20seems%20to%20be%20an%20Apple%20account.%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20idp%20%3D%20%22apple%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20signInName%20%3D%20email%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%3C%2FRESPONSECONTENT%3E%3C%2FFONT%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CFONT%3Enew%20JsonMediaTypeFormatter()%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22application%2Fjson%22)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3C%2FFONT%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(The%20beautiful%20hardcoding%20approach%20still%20in%20play%20here.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20in%20this%20case%20the%20first%20step%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20528px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123957iF1B97E917CF67804%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_01.png%22%20title%3D%22Apple_IdP_01.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20will%20take%20you%20to%20Apple's%20sign%20in%20screen%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20451px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123958i910798015542DD49%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_02.png%22%20title%3D%22Apple_IdP_02.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20notice%20that%20Apple%20doesn't%20care%20about%20the%20email%20you%20entered%20as%20a%20login_hint%20-%20this%20is%20purely%20to%20drive%20the%20B2C%20logic%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20previously%20consented%2C%20so%20if%20you%20haven't%20things%20will%20look%20slightly%20different%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20631px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123959iB6DF0101504A709E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_03.png%22%20title%3D%22Apple_IdP_03.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20signing%20up%20you%20will%20be%20prompted%20to%20enter%20your%20name%20manually%20(a%20guid%20pre-filled%20for%20display%20name%2C%20but%20this%20can%20be%20changed)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20490px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123960i3E209DD5AE494CBA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_04.png%22%20title%3D%22Apple_IdP_04.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20then%20you%20will%20be%20redirected%20back%20to%20your%20test%20page%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123962i6E409FF6260495AA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Apple_IdP_05.png%22%20title%3D%22Apple_IdP_05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%2C%20things%20basically%20work.%20Sort%20of%E2%80%A6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20user%20account%20is%20created%20with%20a%20pseudo-random%20guid%20as%20the%20%22name%22%20attribute.%20(Courtesy%20of%20Apple's%20algorithms.)%20In%20this%20case%20the%20%22user%20name%22%20is%20tim%40apple.com%20(as%20we%20used%20in%20our%20hardcoded%20Azure%20Function%20above).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApple%20doesn't%20include%20the%20email%20in%20the%20claims%2C%20so%20you%20don't%20get%20that%20back%20from%20them%20as%20you%20do%20with%20most%20other%20providers.%20(We%20did%20a%20mapping%20in%20the%20policy%20to%20get%20around%20this.)%20It%20will%20be%20possible%20to%20generate%20site-unique%20guid-based%20email%20addresses%2C%20but%20that%20doesn't%20seem%20to%20work%20as%20expected%20in%20the%20Apple%20setup%20yet.%20This%20also%20means%20that%20some%20other%20things%20might%20break%E2%80%A6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20approach%20I%20used%20before%20for%20doing%20the%20home%20realm%20discovery%20passed%20along%20the%20view%20to%20a%20screen%20where%20you%20can%20choose%20between%20different%20identity%20providers%20when%20you%20enter%20an%20unknown%20email%20address.%20This%20breaks%20when%20returning%20to%20B2C%20(the%20Apple%20SignIn%20itself%20works).%20The%20reason%20is%20that%20we%20assume%20email%20will%20be%20available%20for%20all%20providers%20(%3CEM%3E%3CITEM%20key%3D%22%26quot%3Bsetting.operatingMode%26quot%3B%22%3EEmail%3C%2FITEM%3E%3C%2FEM%3E)%2C%20and%20our%20Apple%20option%20doesn't%20go%20along%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20most%20purposes%20I%20don't%20really%20care%20if%20you%20provide%20your%20real%20email%20address%20or%20not%20when%20signing%20up%20as%20long%20as%20I'm%20doing%20basic%20authentication%20things.%20If%20I'm%20doing%20authorization%20I%20might%20have%20some%20issues%20with%20totally%20anonymous%20identities%2C%20but%20that's%20a%20bigger%20discussion.%20(I'm%20not%20saying%20%3CEM%3Ebill.gates%40gmail.com%3C%2FEM%3Eis%20more%20credible%20for%20that%20purpose.)%20Real%20or%20not%20I%20do%20prefer%20it%20to%20be%20an%20actual%20email%20address%20for%20the%20rest%20of%20the%20flows%20to%20work%2C%20but%20I'm%20not%20putting%20a%20lot%20of%20effort%20into%20this%20before%20knowing%20what%20the%20final%20bits%20from%20Apple%20will%20be%20like.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20updated%20the%20code%20on%20GitHub%2C%20but%20if%20you%20don't%20want%20to%20setup%20Apple%20credentials%20yet%20(it%20requires%20an%20Apple%20Developer%20account)%20you%20can%20provide%20a%20fake%20metadata%20address%20and%20a%20fake%20client%20secret%20as%20the%20value%20of%20the%20B2C_1A_AppleIDAppSecret%20key.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Apple's%20implementation%20remains%20as%20it%20is%20now%20I'm%20not%20ready%20to%20roll%20out%20the%20Azure%20AD%20B2C%20support%20for%20it%2C%20but%20with%20a%20bit%20of%20luck%20things%20will%20change%20to%20the%20better%20before%20September%20and%20we%20can%20improve%20upon%20the%20B2C%20bits%20of%20it%20accordingly.%3C%2FP%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-766575%22%20slang%3D%22en-US%22%3E%3CP%3E%22Sign%20In%20with%20Apple%22%20currently%20doesn't%20follow%20standards%20to%20the%20letter%2C%20but%20it%20can%20still%20be%20added%20as%20an%20option%20in%20your%20Azure%20AD%20B2C%20user%20journeys.%20Here%20we%20show%20how%20to%20do%20this%20with%20B2C%20custom%20policies.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-766575%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Developer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-778223%22%20slang%3D%22en-US%22%3ERe%3A%20%22Sign%20In%20with%20Apple%22%20Custom%20Policy%20for%20Azure%20AD%20B2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778223%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Andreas!%20very%20helpful%3C%2FP%3E%3C%2FLINGO-BODY%3E
Senior Member

Disclaimer: Sign In with Apple is currently a preview feature. All things were working as described upon publishing of this article, but things may have changed by the time you read this article.

 

A month ago Apple held its annual Worldwide Developers Conference (WWDC) focusing on improvements in iOS and MacOS. I'm not doing a rehash of that event here, but there was one feature in particular that was interesting from an identity perspective; namely "Sign In with Apple". Billed as a privacy-focused alternative to signing in with Google and Facebook identities, Apple intends to make this a more popular option with "nothing" shared with the web pages that are embedding this. Well, that and signing into native apps where developers have to offer Apple signin if they offer third-party login options.

 

Apple has received some criticism for basing their efforts on OpenID Connect while not going all-in and make the implementation compliant:
https://bitbucket.org/openid/connect/src/default/How-Sign-in-with-Apple-differs-from-OpenID-Connect....

 

I'm not a fan of tweaking protocols like this, and prefer implementations to be compliant, but I'm hoping this is mostly a preview thing and that the final implementation will be up to spec.

 

The reception around the internet seems to be positive from the user side of things. (Not that the average user is all that concerned, but for those who are concerned enough to have an opinion that seems to be the general gist.) I don't disagree with this, but in my opinion the difference between Apple and the alternatives is not so much a technical feat as it is about policies. An identity provider can be very restrictive with what info it gives out, but there's no doubt some of them will provide a lot of data as long as the user consents to it.

 

One of the first things I asked myself was "can I use this with Azure AD B2C"? And after some initial lab work the answer was "yes, you can" when Microsoft provided clear instructions on how to do this with built-in policies:
https://github.com/azure-ad-b2c/samples/tree/master/policies/sign-in-with-apple

 

Since Apple doesn't follow the protocol there are some tweaks you need to perform, but following the steps above you should be able to make it work. (To be fair - Apple never said they followed a standard either.) Do note that if you're testing in the Azure Portal you need to remove &prompt=login from the URL for it to work or you will just get a generic "Bad request".

 

While I love built-in policies as much as the next guy when doing exploratory testing, it often falls short in the real world use cases so the bigger question for me is how to make it work with custom policies.

 

I am basing myself on previous lab work and the following code sample:
https://github.com/ahelland/Identity-CodeSamples-v2/tree/master/aad-b2c-custom_policies-dotnet-core

 

A walkthrough of the stuff I'm adding this into (skippable if you're familiar with custom policies):
https://techcommunity.microsoft.com/t5/Azure-Developer-Community-Blog/Advanced-Home-Realm-Discovery-...

 

To make this work we will add to the "HRD_Internal" custom policy.

 

First you need to add a "Claims Provider" in B2C_1A_TrustFrameworkExtensions_Dev.xml:

<ClaimsProvider>
    <Domain>Apple</Domain>
      <DisplayName>Apple</DisplayName>
      <TechnicalProfiles>
        <TechnicalProfile Id="AppleID">
          <DisplayName>Sign in with Apple</DisplayName>
          <Protocol Name="OpenIdConnect" />
          <Metadata>           
            <Item Key="client_id">%apple-client-id%</Item>
            <Item Key="UsePolicyInRedirectUri">0</Item>
            <Item Key="METADATA">%apple-metadata-endpoint%</Item>
            <Item Key="response_types">code</Item>
            <Item Key="scope">email</Item>
            <Item Key="response_mode">form_post</Item>
            <Item Key="HttpBinding">POST</Item>
          </Metadata>
          <CryptographicKeys>           
            <Key Id="client_secret" StorageReferenceId="B2C_1A_AppleIDAppSecret" />
          </CryptographicKeys>
          <InputClaims>
            <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="login_hint" />
          </InputClaims>
          <OutputClaims>
            <OutputClaim ClaimTypeReferenceId="authenticationSource" DefaultValue="socialIdpAuthentication" />
            <OutputClaim ClaimTypeReferenceId="identityProvider" PartnerClaimType="iss" />
            <OutputClaim ClaimTypeReferenceId="socialIdpUserId" PartnerClaimType="sub" />
            <OutputClaim ClaimTypeReferenceId="displayName" PartnerClaimType="sub" />
            <OutputClaim ClaimTypeReferenceId="givenName" PartnerClaimType="given_name" />
            <OutputClaim ClaimTypeReferenceId="surName" PartnerClaimType="family_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>

 

And then we add a new Orchestration Step to the "HRD_Internal" User Journey:

 

        <OrchestrationStep Order="7" Type="ClaimsExchange" ContentDefinitionReferenceId="api.signuporsignin">
          <Preconditions>
            <Precondition Type="ClaimEquals" ExecuteActionsIf="false">
              <Value>idp</Value>
              <Value>apple</Value>
              <Action>SkipThisOrchestrationStep</Action>
            </Precondition>
            <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
              <Value>objectId</Value>
              <Action>SkipThisOrchestrationStep</Action>
            </Precondition>
          </Preconditions>
          <ClaimsExchanges>
            <ClaimsExchange Id="HintedAppleExchange" TechnicalProfileReferenceId="AppleID" />
          </ClaimsExchanges>
        </OrchestrationStep>

 

Make sure that you align the step order accordingly.

 

I have previously used an Azure Function to do the home realm discovery so I'm continuing this pattern and adding a new option:

 

//For AppleID accounts
if (email == "tim@apple.com")
    {

log.Info($"Identity Provider: Apple");
        return request.CreateResponse<ResponseContent>(
            HttpStatusCode.OK,
            new ResponseContent
            {
version = "1.0.0",
                status = (int) HttpStatusCode.OK,
                userMessage = $"Your account seems to be an Apple account.",
                idp = "apple",
                signInName = email
            },
new JsonMediaTypeFormatter(),
            "application/json");
    }

 

(The beautiful hardcoding approach still in play here.)

 

So in this case the first step looks like this:

Apple_IdP_01.png

 

Which will take you to Apple's sign in screen:

Apple_IdP_02.png

 

You will notice that Apple doesn't care about the email you entered as a login_hint - this is purely to drive the B2C logic here.

 

I have previously consented, so if you haven't things will look slightly different:

Apple_IdP_03.png

When signing up you will be prompted to enter your name manually (a guid pre-filled for display name, but this can be changed):

Apple_IdP_04.png

 

And then you will be redirected back to your test page:

Apple_IdP_05.png

So, things basically work. Sort of…

 

The user account is created with a pseudo-random guid as the "name" attribute. (Courtesy of Apple's algorithms.) In this case the "user name" is tim@apple.com (as we used in our hardcoded Azure Function above).

 

Apple doesn't include the email in the claims, so you don't get that back from them as you do with most other providers. (We did a mapping in the policy to get around this.) It will be possible to generate site-unique guid-based email addresses, but that doesn't seem to work as expected in the Apple setup yet. This also means that some other things might break…

 

The approach I used before for doing the home realm discovery passed along the view to a screen where you can choose between different identity providers when you enter an unknown email address. This breaks when returning to B2C (the Apple SignIn itself works). The reason is that we assume email will be available for all providers (<Item Key="setting.operatingMode">Email</Item>), and our Apple option doesn't go along with this.

 

For most purposes I don't really care if you provide your real email address or not when signing up as long as I'm doing basic authentication things. If I'm doing authorization I might have some issues with totally anonymous identities, but that's a bigger discussion. (I'm not saying bill.gates@gmail.com is more credible for that purpose.) Real or not I do prefer it to be an actual email address for the rest of the flows to work, but I'm not putting a lot of effort into this before knowing what the final bits from Apple will be like.

 

I've updated the code on GitHub, but if you don't want to setup Apple credentials yet (it requires an Apple Developer account) you can provide a fake metadata address and a fake client secret as the value of the B2C_1A_AppleIDAppSecret key.

 

If Apple's implementation remains as it is now I'm not ready to roll out the Azure AD B2C support for it, but with a bit of luck things will change to the better before September and we can improve upon the B2C bits of it accordingly.

1 Comment
Occasional Contributor

Thanks Andreas! very helpful