samples
samples copied to clipboard
Custom policy redirect to application
Hi, I am trying the invite policy (https://github.com/azure-ad-b2c/samples/tree/master/policies/invite) to work with our set-up with a SPA. I just did everything in the readme for basic set up and configurations. I am just using the provided .Net application to generate a generic invite email. The issue is, upon signing up a new account, by clicking [SIGN UP], the credentials I entered is successfully registered upon my checking on b2c portal. But I am redirected to a page that says (instead of redirecting back to my app, ie, http:localhost:4200):
Sorry, but we're having trouble signing you in. We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, please try again. Correlation ID: 32dc60b0-d4b9-44e9-a9a3-95e26cd47abe Timestamp: 2021-03-11 03:02:08Z AADB2C: An exception has occurred.
Here is the DECODED url of this page:
https://mytenant.b2clogin.com/mytenant.onmicrosoft.com/B2C_1A_signup_invitation/api/SelfAsserted/confirmed?csrf_token=SUcvVjBIKzRmaldQcFRCUDNCdEJ5SC85RHJjRlg3VGpRTk5Lb3J2bGordkNGLy9BQm02UndYMUhyS1EzS0ZUcU1aNTZSWG9VK2Vld1k1VGJneVNhZUE9PTsyMDIxLTAzLTExVDAzOjAxOjQzLjI4Njk0NDJaO3JGSnpMcDM3cTEzbFNlMDNpK0p6NlE9PTt7IlRhcmdldEVudGl0eSI6IkxvY2FsQWNjb3VudFNpZ25VcFdpdGhSZWFkT25seUVtYWlsIiwiT3JjaGVzdHJhdGlvblN0ZXAiOjN9&tx=StateProperties=eyJUSUQiOiIzMmRjNjBiMC1kNGI5LTQ0ZTktYTlhMy05NWUyNmNkNDdhYmUifQ&p=B2C_1A_signup_invitation&diags={"pageViewId":"cdcfdc59-020e-432b-ba94-4d34145cba9f","pageId":"SelfAsserted","trace":[{"ac":"T005","acST":1615431704,"acD":1},{"ac":"T021 - URL:https://devgopassglobal.b2clogin.com/static/tenant/templates/AzureBlue/selfAsserted.cshtml?slice=001-000&dc=SIN","acST":1615431704,"acD":142},{"ac":"T029","acST":1615431705,"acD":8},{"ac":"T004","acST":1615431705,"acD":1},{"ac":"T019","acST":1615431705,"acD":14},{"ac":"T003","acST":1615431705,"acD":1},{"ac":"T017T010","acST":1615431726,"acD":2279},{"ac":"T002","acST":0,"acD":0}]}
I checked the audit logs from b2c as well and this is what I found,
Do you have any ideas where should I check? I did not do any major changes on XMLs, and only did change some variable to match our b2c tenant. Any help is highly appreciated. Thank you!
The decoded token doesn't help as much as the initial invite token for debugging. I suggest running on DeploymentMode: Development
and adding app insights logging to the policies as this gives you the exact issue you are having.
@jinzai07 Mate, I am also facing the same issue, did you find any solution to this.
@chaitanyasingu not yet, still waiting for any updates or alternatives