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.

Manually Test Providers (v4)

See original GitHub issue

Description πŸ““

Before the release of v4 we want to manually test most (if not all) the current OAuth providers to make sure the changes that happen on v4 to their configuration didn’t break any of them 🀞🏽

We also haven’t enforced any kind of testing prior to v4, so there is a big chance that some providers do not even work in v3, which might have gone undetected if there was no interest from users to open issues.

Here’s the table where we keep track of this testing:

Provider Account created Manually tested Comments
42 βœ… βœ… #3189, tested by @estarossa0
Apple βœ… βœ… #2875. Thanks @sergeymishin and @TheoBr for the help! See https://github.com/nextauthjs/next-auth/pull/2875#issue-747917222 for caveats
Atlassian βœ… 🚨 Not able to redirect back to callback_url, internal error at Atlassian
Auth0 βœ… βœ…
Azure B2C βœ… βœ… #2862, @BenjaminWFox provided me test account/client. We could not retrieve a profile picture
Azure AD βœ… βœ… Fixed in #2818, @ndom91 has the account for this to test. Default profile picture size is 64x64 #2910
~Basecamp~ ❌ ❌ Removed see, https://github.com/nextauthjs/next-auth/pull/511#issuecomment-892079767
BattleNet N/A
Box N/A
Bungie
Cognito βœ… βœ… #2829, AWS provided by @s-kris
Coinbase N/A
Discord βœ… βœ…
Dropbox βœ…
Eve Online
Facebook βœ… βœ…
FaceIT βœ…
FourSquare βœ… βœ…
Freshbooks βœ…
FusionAuth βœ… #3376 by @alessandrojcm
Github βœ… βœ…
Gitlab βœ… βœ…
Google βœ… βœ…
IS4 βœ… βœ…
Instagram βœ…
Kakao βœ…
Keycloak βœ… βœ… #2485, #2851
Line βœ… βœ… #2917, email needs special setup. tested by @ThangHuuVu
LinkedIn βœ… βœ… #2821
MailChimp βœ…
MailRu
Medium
Naver
Netlify
Okta βœ… βœ… #2856
OneLogin βœ… βœ…
Osso
Reddit
Salesforce
Slack βœ… βœ… Fixed in #2848. Requires https for redirect URLs, even for local development. Used ngrok
Spotify βœ… βœ…
Strava
Twtich βœ… βœ…
Twitter βœ… βœ…
VK
Wordpress
WorkOS βœ… βœ… WIP #3886 thanks @m-abdelwahab for the infra support
Yandex
Zoho
Zoom

@balazsorban44 @ndom91 if you could mark the ones you have already manually tested and verified they’re working so we can know which ones are left to test πŸ™πŸ½

Notes

  • BattleNet requires Battle.net Authenticator (possibly replaceable via their first-party app. This is different from normal TOTP)
  • Box only has paid plans
  • Coinbase requires to know your customer (KYC) verification via video chat like when opening a bank account

The relevant PR making this required is #2411. Checks its description for more info.

The documentation page here might also be useful: https://next-auth.js.org/configuration/providers/oauth-provider#options

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:76 (42 by maintainers)

github_iconTop GitHub Comments

4reactions
slavabezcommented, Oct 4, 2021

Hi everyone.

Working on a new project, ran into issues with 2 providers, here are the details.

export default NextAuth({
  debug: true,
  secret: process.env.NEXTAUTH_SECRET,
  adapter: PrismaAdapter(client),
  providers: [
    Email({
      server: process.env.EMAIL_SERVER,
      from: process.env.EMAIL_FROM,
      maxAge: 60 * 60,
      sendVerificationRequest: sendLoginEmail,
    }),
    Yandex({
      clientId: process.env.YANDEX_ID,
      clientSecret: process.env.YANDEX_SECRET,
    }),
    VK({
      clientId: process.env.VK_ID,
      clientSecret: process.env.VK_SECRET,
    }),
    MailRu({
      clientId: process.env.MAILRU_ID,
      clientSecret: process.env.MAILRU_SECRET,
    }),
  ],
});

I created brand new accounts for each one of them, then configured new apps.

I can confirm he Yandex provider works well.

The error I get with VK (CALLBACK_OAUTH_ERROR):

error: {
    message: 'invalid_client (client_id is undefined)',
    providerId: 'vk',
    message: 'invalid_client (client_id is undefined)'
}

The error I get with Mail.ru (OAUTH_CALLBACK_RESPONSE):

OAuthProfile: {
    error: 'invalid request',
    error_code: 2,
    error_description: 'missing request parameter: access_token',
    user: null
  },

Please let me know how I can help, I can help submit a PR, but I’m unsure how to fix the issues. Is there a way to debug provider callbacks?

3reactions
csbokcommented, Dec 22, 2021

@insik-han I also face same issue and created a PR

Or other solution you can try right now pages/api/auth/[…nextauth].ts

import NextAuth from "next-auth"
import KakaoProvider from "next-auth/providers/kakao"

export default NextAuth({
  providers: [
    KakaoProvider({
        authorization: "https://kauth.kakao.com/oauth/authorize?scope=",
        client: {
          token_endpoint_auth_method: 'client_secret_post'
        },
        
        clientId: process.env.KAKAO_CLIENT_ID,
        clientSecret: process.env.KAKAO_CLIENT_SECRET,
    })
  ],
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

Manually Test Providers (v4) Β· Discussion #3945 - GitHub
Before the release of v4 we want to manually test most (if not all) the current OAuth providers to make sure the changes...
Read more >
How to get free at-home Covid tests - CNBC
You can now get four more free Covid-19 at-home test kits delivered to your door, the Biden administration announced Thursday.
Read more >
COVID-19 Over-the-Counter Tests - CMS
Providers who give OTC COVID-19 tests to patients during an inpatient stay, like a hospital stay or a SNF stay. How to Participate....
Read more >
How to get free at-home Covid tests and check expiration dates
The White House is offering 4 more free Covid tests. Here's how best to use them. Each household is eligible for four at-home...
Read more >
How To Interpret Self-Test Results - YouTube
COVID-19 self- tests can be used at home and can provide quick results. This short video offers tips on how to interpret test...
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