Skip to content
This repository was archived by the owner on Dec 30, 2018. It is now read-only.
This repository was archived by the owner on Dec 30, 2018. It is now read-only.

need help #11

@himadrinath

Description

@himadrinath

@gsacavdm @brandwe @lovemaths i config two application with b2c under same client.

applications

  1. asp.net core using cookies auth
  2. node.js using OIDCStrategy

and updated node.js app with CORS

now i want to ajax call to my node.js endpoint from my asp.net core app like this

var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://localhost:3000/account', true); xhr.withCredentials = true; xhr.send(null);

how can i config my

passport.use(new OIDCStrategy({ identityMetadata: config.creds.identityMetadata, clientID: config.creds.clientID, responseType: config.creds.responseType, responseMode: config.creds.responseMode, redirectUrl: config.creds.redirectUrl, allowHttpForRedirectUrl: config.creds.allowHttpForRedirectUrl, clientSecret: config.creds.clientSecret, validateIssuer: config.creds.validateIssuer, isB2C: config.creds.isB2C, issuer: config.creds.issuer, passReqToCallback: config.creds.passReqToCallback, scope: config.creds.scope, loggingLevel: config.creds.loggingLevel, nonceLifetime: config.creds.nonceLifetime, nonceMaxAmount: config.creds.nonceMaxAmount, useCookieInsteadOfSession: config.creds.useCookieInsteadOfSession, cookieEncryptionKeys: config.creds.cookieEncryptionKeys, clockSkew: config.creds.clockSkew, },

so then the auth will picked up by node.js app

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