How to authenticate Keycloak JWT token in firebase client

39 views
Skip to first unread message

Ankita Agrawal

unread,
Jan 24, 2021, 11:44:49 AM1/24/21
to Firebase Google Group
I have configured Keycloak OIDC provider in firebase and written code in my nuxt application like this

const provider = new firebase.auth.OAuthProvider('oidc.firebase');
firebase.auth().signInWithPopup(provider)
.then((result) => {
console.log(result);
})
.catch((error) => {
console.log(error);
});

but while clicking on button it always give me in response
  1. a: null
  2. code: "auth/invalid-credential"
  3. message: "Malformed response cannot be parsed from https:/KEYCLOAKauth/realms/REALM_NAME for OIDC_DISCOVERY"
QuZ0G.png
Reply all
Reply to author
Forward
0 new messages