@gsacavdm @brandwe @lovemaths i config two application with b2c under same client.
applications
- asp.net core using cookies auth
- 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
@gsacavdm @brandwe @lovemaths i config two application with b2c under same client.
applications
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