Home

AADSTS75011 by which the user authenticated with the service doesn't match requested authentication

%3CLINGO-SUB%20id%3D%22lingo-sub-196130%22%20slang%3D%22en-US%22%3EAADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authentication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-196130%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20experiencing%20problems%20with%20a%20certain%20application%20that%20we've%20registred%20in%20Azure.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CEM%3ESorry%2C%20but%20we're%20having%20trouble%20signing%20you%20in.%26nbsp%3B%20We%20received%20a%20bad%20request.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EAADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authentication%20method%20'Password%20Protected%20transport'%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F34597i7029D85A6949C4B8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22aadsts75011.png%22%20title%3D%22aadsts75011.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESituation%3A%3C%2FP%3E%3CUL%3E%3CLI%3Euser%20logs%20in%20(Citrix-environment)%3C%2FLI%3E%3CLI%3EIE11%20is%20auto-started.%20Default%20startpage%20%3D%20our%20intranet%20on%20SharePoint%20Online%3CBR%20%2F%3E(at%20this%20moment%20SSO%20kicks%20in%20and%20the%20user%20will%20be%20logged%20in%20automatically%20in%20office.com%20%2F%20SharePoint%20Online)%3C%2FLI%3E%3CLI%3EUser%20starts%20new%20tab%20in%20IE11%2C%20navigates%20to%20the%20application's%20login-url%20(external%20SaaS%20application)%20and%20poof%3B%20the%20error%20shows%20up%3C%2FLI%3E%3CLI%3EWhen%20user%20starts%20Chrome%20at%20this%20moment%20and%20navigates%20to%20the%20application's%20login-url%20again%2C%20he%20WILL%20be%20logged%20in%20automatically.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThe%20software-developer%20says%20it%20has%20something%20to%20do%20with%20our%20Azure%20settings%20or%20Windows%20environment%2C%20but%20we%20have%20a%20lot%20more%20applications%20registred%20the%20same%20way%20where%20this%20error%20never%20occurs.%3CBR%20%2F%3E%3CBR%20%2F%3EDoes%20anyone%20have%20a%20clue%20on%20how%20to%20fix%20this%3F%3CBR%20%2F%3EIt%20looks%20like%20the%20SaaS%20application%20does%20not%20accept%20Windows%20Integrated%20authentication%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-196130%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESSO%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205599%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205599%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20the%20code%20that%20is%20being%20used%20and%20is%20causing%20the%20error.%3CBR%20%2F%3ENote%20that%20some%20values%20have%20been%20anonymized.%3CBR%20%2F%3ECan%20you%20see%20anything%20wrong%3F%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%20Josse%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3Evar%20express%20%3D%20require('express')%3B%3CBR%20%2F%3Evar%20path%20%3D%20require('path')%3B%3CBR%20%2F%3Evar%20favicon%20%3D%20require('serve-favicon')%3B%3CBR%20%2F%3Evar%20logger%20%3D%20require('morgan')%3B%3CBR%20%2F%3Evar%20cookieParser%20%3D%20require('cookie-parser')%3B%3CBR%20%2F%3Evar%20bodyParser%20%3D%20require('body-parser')%3B%3CBR%20%2F%3Evar%20passport%20%3D%20require('passport')%3B%3CBR%20%2F%3Evar%20session%20%3D%20require('express-session')%3B%3CBR%20%2F%3Evar%20fs%20%3D%20require('fs')%3B%3CBR%20%2F%3Evar%20SamlStrategy%20%3D%20require('passport-saml').Strategy%3B%3CBR%20%2F%3E%3CBR%20%2F%3Evar%20kSSODomain%20%3D%20%22%22%3B%3CBR%20%2F%3E%3CBR%20%2F%3Epassport.serializeUser(function%20(user%2C%20done)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20done(null%2C%20user)%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3Epassport.deserializeUser(function%20(user%2C%20done)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20done(null%2C%20user)%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3Epassport.use(new%20SamlStrategy(%3CBR%20%2F%3E%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20callbackUrl%3A%20'%3C%2FFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.domain.com%2Fsso%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttps%3A%2F%2Fwww.domain.com%2Fsso%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20entryPoint%3A%20'%3C%2FFONT%3E%3CA%20href%3D%22https%3A%2F%2Flogin.windows.net%2F8888888-8888-8888-8888-8888888888888%2Fsaml2%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttps%3A%2F%2Flogin.windows.net%2F8888888-8888-8888-8888-8888888888888%2Fsaml2%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20issuer%3A%20'8888888-8888-8888-8888-8888888888888'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20cert%3A%20fs.readFileSync('sso-prd.cer'%2C%20'utf-8')%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20signatureAlgorithm%3A%20'sha256'%3CBR%20%2F%3E%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%20function(profile%2C%20done)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20console.log(profile)%3B%3CBR%20%2F%3E%26nbsp%3B%20console.log(done)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%20done(null%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20id%3A%20profile%5B'nameID'%5D%2C%3CBR%20%2F%3E%2F%2F%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20email%3A%20profile%5B'%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Femailaddress%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttp%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Femailaddress%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%5D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20email%3A%20profile%5B'%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fname%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttp%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fname%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%5D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20displayName%3A%20profile%5B'%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fidentity%2Fclaims%2Fdisplayname%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fidentity%2Fclaims%2Fdisplayname%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%5D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20firstName%3A%20profile%5B'%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fgivenname%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttp%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fgivenname%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%5D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20lastName%3A%20profile%5B'%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fsurname%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230563c1%22%20face%3D%22Calibri%22%3Ehttp%3A%2F%2Fschemas.xmlsoap.org%2Fws%2F2005%2F05%2Fidentity%2Fclaims%2Fsurname%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E'%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D)%3B%3CBR%20%2F%3E%26nbsp%3B%20%7D)%3CBR%20%2F%3E)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3Evar%20index%20%3D%20require('.%2Froutes%2Findex')%3B%3CBR%20%2F%3Evar%20users%20%3D%20require('.%2Froutes%2Fusers')%3B%3CBR%20%2F%3E%3CBR%20%2F%3Efunction%20findByEmail(email%2C%20fn)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20vwapi.userFind(email%2C%20function(error%2C%20body)%20%7B%3CBR%20%2F%3E%2F%2F%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20console.log(body.result)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20if%20(!error%20%26amp%3B%26amp%3B%20body.result.substring(0%2C2)%20%3D%3D%20%22OK%22)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%20fn(error%2C%20body.data)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%20fn(error%2C%20null)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D)%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3Evar%20app%20%3D%20express()%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%2F%2F%20view%20engine%20setup%3CBR%20%2F%3Eapp.set('views'%2C%20path.join(__dirname%2C%20'views'))%3B%3CBR%20%2F%3Eapp.set('view%20engine'%2C%20'ejs')%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eapp.use(logger('dev'))%3B%3CBR%20%2F%3Eapp.use(bodyParser.json())%3B%3CBR%20%2F%3Eapp.use(bodyParser.urlencoded(%7B%20extended%3A%20false%20%7D))%3B%3CBR%20%2F%3Eapp.use(cookieParser())%3B%3CBR%20%2F%3Eapp.use(session(%3CBR%20%2F%3E%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20resave%3A%20true%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20saveUninitialized%3A%20true%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20secret%3A%20'removedthis'%3CBR%20%2F%3E%26nbsp%3B%20%7D))%3B%3CBR%20%2F%3Eapp.use(passport.initialize())%3B%3CBR%20%2F%3Eapp.use(passport.session())%3B%3CBR%20%2F%3Eapp.use(express.static(path.join(__dirname%2C%20'public')))%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eapp.use('%2Fsaml2%2F'%2C%20index)%3B%3CBR%20%2F%3E%2F%2Fapp.use('%2Fsaml2%2Fusers'%2C%20users)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eapp.get('%2Fsaml2%2Flogin'%2C%20(req%2C%20res)%20%3D%26gt%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20res.redirect('%2Fsaml2%2Fhandlelogin')%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eapp.get('%2Fsaml2%2Fhandlelogin'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20passport.authenticate('saml'%2C%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20successRedirect%3A%20'%2Faccount%2Fhome'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20failureRedirect%3A%20'%2Flogin'%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D)%3CBR%20%2F%3E)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eapp.post('%2Fsso'%2C%3CBR%20%2F%3E%26nbsp%3B%20passport.authenticate('saml'%2C%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20failureRedirect%3A%20'%2Faccount%2Flogin'%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20failureFlash%3A%20true%20%7D)%2C%3CBR%20%2F%3E%26nbsp%3B%20function(req%2C%20res)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20var%20profile%20%3D%20req.session.passport.user%3B%3CBR%20%2F%3Econsole.log(profile)%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20validatedUser(req%2C%20res%2C%20profile)%3B%3CBR%20%2F%3E%26nbsp%3B%20%7D%3CBR%20%2F%3E)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3Efunction%20validatedUser(req%2C%20res%2C%20profile)%20%7B%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%2F%2F%20catch%20404%20and%20forward%20to%20error%20handler%3CBR%20%2F%3Eapp.use(function(req%2C%20res%2C%20next)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20var%20err%20%3D%20new%20Error('Not%20Found')%3B%3CBR%20%2F%3E%26nbsp%3B%20err.status%20%3D%20404%3B%3CBR%20%2F%3E%26nbsp%3B%20next(err)%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%2F%2F%20error%20handler%3CBR%20%2F%3Eapp.use(function(err%2C%20req%2C%20res%2C%20next)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%2F%2F%20set%20locals%2C%20only%20providing%20error%20in%20development%3CBR%20%2F%3E%26nbsp%3B%20res.locals.message%20%3D%20err.message%3B%3CBR%20%2F%3E%26nbsp%3B%20res.locals.error%20%3D%20req.app.get('env')%20%3D%3D%3D%20'development'%20%3F%20err%20%3A%20%7B%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%20%2F%2F%20render%20the%20error%20page%3CBR%20%2F%3E%26nbsp%3B%20res.status(err.status%20%7C%7C%20500)%3B%3CBR%20%2F%3E%26nbsp%3B%20res.render('error')%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Emodule.exports%20%3D%20app%3B%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199857%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199857%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20it%20will%20work%20and%20you%20can%20also%20share%20this%20article%20with%20him.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-single-sign-on-protocol-reference%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-single-sign-on-protocol-reference%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20still%20it%20doesn't%20work%2C%20let%20me%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERishabh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199856%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199856%22%20slang%3D%22en-US%22%3EHi%20Rishabh%2C%3CBR%20%2F%3Ethanks%20for%20your%20reply!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20not%20a%20developer%20at%20all%2C%20but%20basically%20what%20you%20are%20saying%20is%3A%3CBR%20%2F%3E%3CBR%20%2F%3Eclasses%3APasswordProtectedTransport%20--%26gt%3B%20most%20probably%20this%20causes%20the%20problem%3CBR%20%2F%3Eclasses%3APassword%20--%26gt%3B%20this%20will%20work%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20this%20correct%3F%20I%20will%20ask%20the%20developer%20to%20look%20futher%20into%20this.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3EJosse%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199643%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199643%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Josse%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20error%20message%20that%20you%20are%20getting%20is%20because%20the%20authentication%20request%20sent%20by%20the%20application%20is%20not%20accepted%20by%20azure%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%20%3A-%20%22PasswordProtectedTransport%22%20is%20a%20parameter%20which%20is%20included%20when%20the%20authentication%20request%20is%20sent%20to%20the%20IDP%20using%20SAML.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20mentioned%20is%20an%20example%20of%20sample%20saml%20auth%20request%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3E%3CAUTHNCONTEXT%3E%3C%2FAUTHNCONTEXT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3E%3CAUTHNCONTEXTCLASSREF%3E%3C%2FAUTHNCONTEXTCLASSREF%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3Eurn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3APasswordProtectedTransport%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CFONT%20face%3D%22Courier%20New%2C%20monospace%22%3E%3CFONT%20size%3D%221%22%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3ECheck%20it%20from%20the%20rfc%20of%20saml%20-%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fdocs.oasis-open.org%2Fsecurity%2Fsaml%2FPost2.0%2Fsstc-saml-tech-overview-2.0.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fdocs.oasis-open.org%2Fsecurity%2Fsaml%2FPost2.0%2Fsstc-saml-tech-overview-2.0.html%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3EThe%20purpose%20of%20this%20parameter%20is%20prompt%20user%20to%20enter%20credentials%20even%20if%20sso%20is%20enabled%20in%20the%20enterprise.%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3ENow%20I%20am%20not%20really%20sure%20what%20is%20happening%20with%20this%20request%2C%20if%20you%20look%20closely%20there%20is%20a%20%22%2C%22%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3Ebetween%20password%20and%20protected%20transport.%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3EAlso%20below%20mentioned%20is%20a%20sample%20saml%20request%20that%20should%20be%20sent%20to%20azure%20ad%20-%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CAUTHNREQUEST%3E%3CBR%20%2F%3Exmlns%3D%22urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Ametadata%22%3CBR%20%2F%3EID%3D%22id6c1c178c166d486687be4aaf5e482730%22%3CBR%20%2F%3EVersion%3D%222.0%22%20IssueInstant%3D%222013-03-18T03%3A28%3A54.1839884Z%22%3CBR%20%2F%3Exmlns%3Asamlp%3D%22urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aprotocol%22%26gt%3B%3CBR%20%2F%3E%3CISSUER%20xmlns%3D%22%26quot%3Burn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aassertion%26quot%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.contoso.com%26lt%3B%2FIssuer%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.contoso.com%3C%2FA%3E%3C%2FISSUER%3E%26gt%3B%3CBR%20%2F%3E%3C%2FAUTHNREQUEST%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-single-sign-on-protocol-reference%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-single-sign-on-protocol-reference%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3EAlso%20please%20refer%20to%20the%20article%20mentioned%20above%20%3A-%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1427929983%22%20id%3D%22toc-hId-1508098619%22%20id%3D%22toc-hId-1508098619%22%20id%3D%22toc-hId-1508098619%22%20id%3D%22toc-hId-1508098619%22%20id%3D%22toc-hId-1508098619%22%3ERequestAuthnContext%3C%2FH3%3E%3CP%3EThe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ERequestedAuthnContext%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eelement%20specifies%20the%20desired%20authentication%20methods.%20It%20is%20optional%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EAuthnRequest%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eelements%20sent%20to%20Azure%20AD.%20Azure%20AD%20supports%20only%20one%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EAuthnContextClassRef%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Evalue%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eurn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3APassword%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3EIn%20order%20to%20get%20this%20fixed%2C%20I%20think%20you%20can%20ask%20your%20developer%20to%20change%20the%20authentication%20request%20for%20this%20application.%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3ERegards%2C%3C%2FFONT%3E%3C%2FP%3E%3CP%20align%3D%22left%22%3E%3CFONT%20color%3D%22%23000000%22%3ERishabh%3C%2FFONT%3E%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782921%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782921%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70975%22%20target%3D%22_blank%22%3E%40Josse%20Huizen%3C%2FA%3E%26nbsp%3BDid%20you%20ever%20resolve%20this%3F%20Seeing%20the%20exact%20same%20behavior%20with%20a%20third%20party%20provider%2Fapp.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782988%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782988%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385413%22%20target%3D%22_blank%22%3E%40GlenE%3C%2FA%3E%26nbsp%3Byes%20we%20had%20our%203rd%20party%20provider%20use%20a%20different%20SAML%20library%20and%20that%20did%20the%20job.%20There%20wasn't%20anything%20wrong%20with%20our%20Azure%20(configuration)%3B%20it%20was%20something%20that%20was%20misconfigured%2Fnot%20working%20at%20the%203rd%20party's%20sP%20settings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-784722%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-784722%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70975%22%20target%3D%22_blank%22%3E%40Josse%20Huizen%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20response!%20We're%20using%20Genesys%20PureCloud%20which%20is%20a%20fairly%20well%20established%20app%20so%20I'm%20kind%20of%20surprised%20we're%20seeing%20this%20but%20possibly%20just%20a%20configuration%20setting%20on%20their%20end.%20It's%20kind%20of%20difficult%20to%20say%20that%20it's%20an%20Azure%20AD%20Premium%20config%20issue%20as%20SSO%20works%20as%20expected%20on%20the%20second%20attempt.%20I%20think%20we'll%20get%20a%20ticket%20open%20with%20the%20provider%20and%20see%20what%20they%20have%20to%20say.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-831363%22%20slang%3D%22en-US%22%3ERe%3A%20AADSTS75011%20by%20which%20the%20user%20authenticated%20with%20the%20service%20doesn't%20match%20requested%20authenticat%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-831363%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385413%22%20target%3D%22_blank%22%3E%40GlenE%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20similar%20issue%20here.%26nbsp%3B%20We're%20using%20AAD%20for%20Boomi%20(as%20in%20Dell%20Boomi)%20and%20get%20the%20same%20error%20in%20IE%20and%20Chrome%20(but%20Firefox%20works)%2C%20but%20only%20from%20one%20office%20site.%26nbsp%3B%20If%20we%20log%20into%20workstations%20in%20our%20other%20offices%20(New%20York%2C%20Boston%2C%20London%2C%20Shanghai)%2C%20we%20can%20use%20IE%20and%20Chrome%20with%20no%20issues.%26nbsp%3B%20Here%20is%20where%20it%20gets%20interesting%2C%20if%20we%20log%20into%20a%20W10%20vm%20that%20is%20in%20our%20servers%20OU%2C%20we%20can%20use%20IE%20and%20do%20not%20get%20that%20error.%3C%2FP%3E%3CP%3EI've%20worked%20with%20our%20firewall%20team%20and%20they%20excluded%20me%20from%20the%20encryption%20policy%20on%20the%20FWs%20and%20everything%20with%20no%20luck.%26nbsp%3B%20The%20fact%20that%20it%20works%20from%20a%20machine%20in%20an%20OU%20outside%20of%20our%20user%2Fcomputer%20GPOs%20has%20me%20looking%20down%20that%20path...but%20i'm%20not%20sure%20where%20to%20start.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Josse Huizen
Occasional Contributor

We're experiencing problems with a certain application that we've registred in Azure.

Sorry, but we're having trouble signing you in.  We received a bad request.

AADSTS75011 by which the user authenticated with the service doesn't match requested authentication method 'Password Protected transport'

aadsts75011.png


Situation:

  • user logs in (Citrix-environment)
  • IE11 is auto-started. Default startpage = our intranet on SharePoint Online
    (at this moment SSO kicks in and the user will be logged in automatically in office.com / SharePoint Online)
  • User starts new tab in IE11, navigates to the application's login-url (external SaaS application) and poof; the error shows up
  • When user starts Chrome at this moment and navigates to the application's login-url again, he WILL be logged in automatically.

The software-developer says it has something to do with our Azure settings or Windows environment, but we have a lot more applications registred the same way where this error never occurs.

Does anyone have a clue on how to fix this?
It looks like the SaaS application does not accept Windows Integrated authentication?

8 Replies

Hello Josse,

 

The error message that you are getting is because the authentication request sent by the application is not accepted by azure AD.

 

Note :- "PasswordProtectedTransport" is a parameter which is included when the authentication request is sent to the IDP using SAML.

 

Below mentioned is an example of sample saml auth request, 

 

<saml:AuthnContext>

<saml:AuthnContextClassRef>

urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport

</saml:AuthnContextClassRef>

</saml:AuthnContext>

</saml:AuthnStatement>

 

Check it from the rfc of saml - http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html

 

The purpose of this parameter is prompt user to enter credentials even if sso is enabled in the enterprise.

 

Now I am not really sure what is happening with this request, if you look closely there is a ","

between password and protected transport.

 

Also below mentioned is a sample saml request that should be sent to azure ad - 

 

<samlp:AuthnRequest
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
ID="id6c1c178c166d486687be4aaf5e482730"
Version="2.0" IssueInstant="2013-03-18T03:28:54.1839884Z"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://www.contoso.com</Issuer>
</samlp:AuthnRequest>

 

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-single-sign-on-prot...

 

Also please refer to the article mentioned above :- 

 

RequestAuthnContext

The RequestedAuthnContext element specifies the desired authentication methods. It is optional in AuthnRequest elements sent to Azure AD. Azure AD supports only one AuthnContextClassRef value: urn:oasis:names:tc:SAML:2.0:ac:classes:Password

 

 

In order to get this fixed, I think you can ask your developer to change the authentication request for this application.

 

 

Regards,

Rishabh

Hi Rishabh,
thanks for your reply!

I am not a developer at all, but basically what you are saying is:

classes:PasswordProtectedTransport --> most probably this causes the problem
classes:Password --> this will work?

Is this correct? I will ask the developer to look futher into this.

Regards,
Josse


Yes, it will work and you can also share this article with him.

 

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-single-sign-on-prot...

 

If still it doesn't work, let me know.

 

Regards,

Rishabh

Hello,

This is the code that is being used and is causing the error.
Note that some values have been anonymized.
Can you see anything wrong?

Regards Josse

 

var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var passport = require('passport');
var session = require('express-session');
var fs = require('fs');
var SamlStrategy = require('passport-saml').Strategy;

var kSSODomain = "";

passport.serializeUser(function (user, done) {
  done(null, user);
});
passport.deserializeUser(function (user, done) {
  done(null, user);
});
passport.use(new SamlStrategy(
  {
    callbackUrl: '
https://www.domain.com/sso',
    entryPoint: '
https://login.windows.net/8888888-8888-8888-8888-8888888888888/saml2',
    issuer: '8888888-8888-8888-8888-8888888888888',
    cert: fs.readFileSync('sso-prd.cer', 'utf-8'),
    signatureAlgorithm: 'sha256'
  },
  function(profile, done) {
  console.log(profile);
  console.log(done);
    return done(null,
    {
      id: profile['nameID'],
//      email: profile['
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'],
      email: profile['
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'],
      displayName: profile['
http://schemas.microsoft.com/identity/claims/displayname'],
      firstName: profile['
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname'],
      lastName: profile['
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname']
    });
  })
);


var index = require('./routes/index');
var users = require('./routes/users');

function findByEmail(email, fn) {
    vwapi.userFind(email, function(error, body) {
//        console.log(body.result);
        if (!error && body.result.substring(0,2) == "OK") {
            return fn(error, body.data);
        }
        return fn(error, null);
    });
};

var app = express();

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(session(
  {
    resave: true,
    saveUninitialized: true,
    secret: 'removedthis'
  }));
app.use(passport.initialize());
app.use(passport.session());
app.use(express.static(path.join(__dirname, 'public')));

app.use('/saml2/', index);
//app.use('/saml2/users', users);

app.get('/saml2/login', (req, res) => {
    res.redirect('/saml2/handlelogin');
});

app.get('/saml2/handlelogin',
    passport.authenticate('saml', {
        successRedirect: '/account/home',
        failureRedirect: '/login'
    })
);

app.post('/sso',
  passport.authenticate('saml', {
    failureRedirect: '/account/login',
    failureFlash: true }),
  function(req, res) {
    var profile = req.session.passport.user;
console.log(profile);
    validatedUser(req, res, profile);
  }
);


function validatedUser(req, res, profile) {
}

// catch 404 and forward to error handler
app.use(function(req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});

// error handler
app.use(function(err, req, res, next) {
  // set locals, only providing error in development
  res.locals.message = err.message;
  res.locals.error = req.app.get('env') === 'development' ? err : {};

  // render the error page
  res.status(err.status || 500);
  res.render('error');
});

module.exports = app;

@Josse Huizen Did you ever resolve this? Seeing the exact same behavior with a third party provider/app.

@GlenE yes we had our 3rd party provider use a different SAML library and that did the job. There wasn't anything wrong with our Azure (configuration); it was something that was misconfigured/not working at the 3rd party's sP settings.

@Josse Huizen thanks for the response! We're using Genesys PureCloud which is a fairly well established app so I'm kind of surprised we're seeing this but possibly just a configuration setting on their end. It's kind of difficult to say that it's an Azure AD Premium config issue as SSO works as expected on the second attempt. I think we'll get a ticket open with the provider and see what they have to say.

 

Thanks again!

@GlenE 

We have a similar issue here.  We're using AAD for Boomi (as in Dell Boomi) and get the same error in IE and Chrome (but Firefox works), but only from one office site.  If we log into workstations in our other offices (New York, Boston, London, Shanghai), we can use IE and Chrome with no issues.  Here is where it gets interesting, if we log into a W10 vm that is in our servers OU, we can use IE and do not get that error.

I've worked with our firewall team and they excluded me from the encryption policy on the FWs and everything with no luck.  The fact that it works from a machine in an OU outside of our user/computer GPOs has me looking down that path...but i'm not sure where to start.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies