[Vuejs]-Microsoft authentication using firebase

0👍

I was able to fix this problem by doing under written 2 steps

step 1 : I created SPA platform on azure portal but it should be web platform so just deleted the SPA and added web platform to fix this problem

To configure application settings based on the platform or device you’re targeting, follow these steps:

  • In the Azure portal, in App registrations, select your application.
  • Under Manage, select Authentication.
  • Under Platform configurations, select Add a platform. Under
  • Configure platforms, select the tile for your application type
    (platform) to configure its settings.
    enter image description here

step 2: we have to Application secret in fire base console which need to be copied correctly from azure portal
basic steps to create and add a client secret

  • In the Azure portal, in App registrations, select your application.
  • Select Certificates & secrets > Client secrets > New client secret.
  • Add a description for your client secret.
  • Select an expiration for the secret or specify a custom lifetime
  • Select Add.
  • Record the secret’s value for use in your client application code. This secret value is never displayed again after you leave this page.
    enter image description here

please read the last step properly which says we have to copy key value if you left the page the value will be hidden like this with *** so in that case just delete this key and add new client key then copy the value (it "Value" field not "Secret ID" field)

enter image description here

now just add that key to your fire base console in application secret field
enter image description here

Note: try to follow these documentations properly Firebase documentation and microsoft azure documentation

Leave a comment