Skip to content

Signup with Azure Active Directory redirects with OAuthAccountNotLinked #5454

@palminha

Description

@palminha

Provider type

Azure Active Directory

Environment

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 83.34 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.8.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.18.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 105.0.5195.125
    Safari: 16.0
  npmPackages:
    next: 12.2.4 => 12.2.4 
    next-auth: ^4.10.3 => 4.10.3 
    react: latest => 17.0.2 

Reproduction URL

not public

Describe the issue

We have implemented three login methods: Email link, GitHub and Azure Active Directory
The EMail Link and GitHub are working ok.

With Azure the URI is redirected with error=OAuthAccountNotLinked

i followed these instructions: https://next-auth.js.org/providers/azure-ad

How to reproduce

Azure the URI is redirected with error=OAuthAccountNotLinked

Expected behavior

The redirect should work and user should be logged in into our application

Metadata

Metadata

Assignees

No one assigned

    Labels

    providerstriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions