Skip to content

Getting Internal oAuth error. Immediate help is appreciated  #23

@bkarthik3525

Description

@bkarthik3525

Hi,
I have a web application which already working with google strategy, Now I am in need of integrating Azure AD login to my application.
I followed the strategy configuration as stated in http://www.passportjs.org/packages/passport-azure-ad-oauth2/ , while running the app I can able to see the AD login and after login I am getting Internal oAuth Error
image

here is the code snippets
image

I couldn't get the exact error when using the passport.authenticate in middleware approach, So I used as inside my request handler.
image

here is my config parameters
image

The important thing is when I use MSAL library, everything going smooth, which means the after login the access toke and user details can be retrieved from the response.
here is the response when using MSAL.
image

NOTE: My network is behind proxy and I whitelisted .microsoftonline.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions