Hi @amanpreetsingh-msft ,
I have referred code sample from here and used in my asp.net mvc app to authenticate using b2c service. If I add user flow policy for sign-in/sign-up its working as expected, but if user my custom policy for sign-in/sign-up user and after entering credentials I am getting following error on my asp.net mvc app:
IDX10501: Signature validation failed. Unable to match key: kid: 'System.String'. Exceptions caught: 'System.Text.StringBuilder'. token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
I looked around this issue and seems like some problem with authority or metadata endpoint. I also have tried to hard code custom policy well known meta data endpoint from portal and still getting same error.
Could you please help and point me to correct direction what I am missing here?
Thanks for your help in advance.