OpenIDConnect Azure Website hosted in an iFrame within Dynamics CRM Online -
i'm trying openidconnect azure sample here working within iframe in crm. i've deployed azure login works fine when hitting site directly.
when access site via iframe in crm online it's displayed fine when attempt login i'm getting following error:
microsoft.identitymodel.protocols.openidconnectprotocolinvalidnonceexception: idx10311: requirenonce 'true' (default) validationcontext.nonce null. nonce cannot validated. if don't need check nonce, set openidconnectprotocolvalidator.requirenonce 'false'. after investigation i've updated owin middleware configuration set requirenonce false:
app.useopenidconnectauthentication( new openidconnectauthenticationoptions { clientid = clientid, authority = authority, postlogoutredirecturi = postlogoutredirecturi, protocolvalidator = new microsoft.identitymodel.protocols.openidconnectprotocolvalidator() { requirenonce = false } }); when try login following exception i've hit wall.
microsoft.identitymodel.protocols.openidconnectprotocolexception: invalid_request any appreciated. understand use of nonce i'm yet understand full implications of disabling within use case getting working without need disable ideal.
the authentication experience cannot iframed, security reasons. also, turning off nonce verification dangerous - advise against it. can refer oauth2 , openid connect threat models concrete details on risks you'll incur in, frame busting logic should make point moot.
Comments
Post a Comment