Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Error when Auth0 Firebase Integration #58

Closed
boskiv opened this issue Dec 24, 2016 · 3 comments
Closed

400 Error when Auth0 Firebase Integration #58

boskiv opened this issue Dec 24, 2016 · 3 comments

Comments

@boskiv
Copy link
Contributor

boskiv commented Dec 24, 2016

I have setup my own auth0 account and firebase account.
When I log in, it successfully works, but in console I have error
POST https://boskiv.eu.auth0.com/delegation 401 (Unauthorized)

How can I dig into it ? I have setup firebase connection with auth0 already.

Also I've fount this code in auth.serve.ts

private generateAuthOption = (token: string): any => {
    return {
      api: 'firebase',
      id_token: token,
      scope: 'openid name email displayName',
      target: 'uyZPfupm9XEM2jdDwiz9xGmvDnly5ydU'
    };
  }

Need I change target string to my own ? Where I can get it then ?

2016-12-24 13 53 00

@boskiv
Copy link
Contributor Author

boskiv commented Dec 24, 2016

I have also noticed that no permissions are granted in firebase to my user from auth0
Uncaught Error: permission_denied at /clients: Client doesn't have permission to access the desired data.

@boskiv
Copy link
Contributor Author

boskiv commented Dec 24, 2016

I have found this tutorial: https://auth0.com/blog/firebase-authentication-with-firebase-3.0-and-auth0-integration/

Fix target with my auth0 client id.

Now I have 400 response :(

2016-12-24 14 37 08

2016-12-24 14 41 24

@boskiv boskiv changed the title 401 Error when I logging in With Auth0 400 Error when Auth0 Firebase Integration Dec 24, 2016
@boskiv
Copy link
Contributor Author

boskiv commented Dec 24, 2016

My bad, I have several firebase projects and missconfigured with credentials.
From scratch all works fine.

@boskiv boskiv closed this as completed Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant