question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

provider.SignInWithOAuth() throws exception.

See original GitHub issue

Exception: “Response status code does not indicate success: 400” when I call SignInWithOAuth
var auth = await provider.SignInWithOAuthAsync(FirebaseAuthType.Facebook, facebookAccessToken); The facebookAccessToken is generated properly and I use Firebase Browser APIKey for FirebaseConfig
UWP 10.0

Stack trace:
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Firebase.Auth.FirebaseAuthProvider.<SignInWithPostContentAsync>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable``1.ConfiguredTaskAwaiter.GetResult() at Firebase.Auth.FirebaseAuthProvider.<SignInWithOAuthAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter``1.GetResult() at simple_social_media.MainPage.<mainlogin_Click>d__1.MoveNext()

Could the problem be at my end?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bezysoftwarecommented, Sep 5, 2016

Can you try the latest version of the package (v2.0.1)? In case of an error it throws a FirebaseAuthException which should contain all information you should need to debug it (target url, post data and most imporantly responseData, which should contain the reason for the error).

0reactions
stale[bot]commented, Oct 10, 2019

Closing the issue due to inactivity. Feel free to re-open

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to catch a Firebase Auth specific exceptions
You can throw the Exception returned by task.getException inside a try block and catch each type of Exception that may be thrown by...
Read more >
How to authorise Google Auth for Offline use? (Have ...
I prompt signInWithOAuth() with additional queryParams for access_type and prompt: const { data, error } = await supabase.auth.signInWithOAuth({ ...
Read more >
Login with Google | Supabase Docs
To initiate sign in, you can use the signInWithOAuth() method from the Supabase JavaScript library: 1. supabase.auth.signInWithOAuth({. 2. provider: ...
Read more >
org.springframework.security.oauth2.provider.error. ...
@ExceptionHandler(InvalidTokenException.class) public ResponseEntity<OAuth2Exception> handleException(Exception e) throws Exception { logger.info("Handling ...
Read more >
Handle Spring Security Exceptions
In this article, we'll have a look at how to handle Spring Security exceptions produced by our Spring Security Resource Server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found