Posts

drupal 7 - okta performance for authentication -

Image
i’m experiencing poor performance on user authentication, , suggestions try improve it. i’m using drupal integrated third party system runs on salesforce.com (sfdc) platform. okta doing sso these. ad idp, , contains security groups assign user permissions sfdc (all users in ad have access drupal). here authentication flow : when user starts login process, username (email) , password sent drupal validation. login (username/password) → [drupal ui – browser] → login user → [drupal backend] the drupal backend calls okta api , validate credentials in okta. validate user credentials → [okta – authentication api] if validation okta passes, redirection , session token created; sent ui because using javascript perform redirection. when redirection called, session cookie generated in user’s browser. [drupal ui - browser] ← [drupal – backend] ← validated session token ← [okta – authentication api] [drupal ui - browser] → redirects user sfdc endpoint session cookie → [okta – s...

How does npm know you're in dev/developing mode? -

can explain me means --save-dev , how impacts distribution , how npm aware of you're trying do? first , see answer question, what's difference between dependencies, devdependencies , peerdependencies . that explain ton. second , npm install devdependencies default unless 1 of 2 things true, in case devdependencies skipped. these things are: you explicitly tell npm it's production npm install --production you set environment variable npm checks, node_environment=production in general, if distributing heroku, have production flag set , devdependencies not installed. install things --save-dev or -d flag (both same thing) if module used development, such tests/mocks/scaffolding/etc.

selenium - Configure Capybara to use Marionette WebDriver for Firefox -

with marionette replacing firefoxdriver, need configure tests run it. i've downloaded binary can't seem capybara driver registration configured use marionette. capybara.register_driver :selenium_firefox |app| capabilities = selenium::webdriver::remote::capabilities.firefox capabilities["firefox_binary"] = 'path/to/marionette/renamed/to/wires' capybara::selenium::driver.new(app, browser: :firefox, desired_capabilities: capabilities) end when start test though, initial page of ff trying run without marionette. marionette passed option driver.new - not desired_capabilities capybara.register_driver :selenium_firefox |app| capybara::selenium::driver.new(app, browser: :firefox, marionette: true) end it requires have downloaded geckodriver, put in path , renamed wires a complete description of these configuration steps, including marionette latest executables download links can found here . note: capybara not yet support marionette,...

php - Trouble Understanding the ReturnTo Redirect for SimpleSAMLphp -

trying set redirect in simplesamlphp take user page trying access before being sent authentication. i'm using returnto option: $as->requireauth(array("returnto" => $returnurl, 'keeppost' => false)); with metadata remote-idp set (stripped example): $metadata['sample'] = array( 'name' => 'sample', 'entityid' => 'https://sample.com/saml/module.php/saml/sp/metadata.php/sample', 'metadata-set' => 'saml20-idp-remote', 'singlesignonservice' => array ( 0 => array ( 'binding' => 'urn:oasis:names:tc:saml:2.0:bindings:http-redirect', 'location' => 'https://sample:port/idp/startsso.ping?partnerspid=https://sample.com/saml/module.php/saml/sp/metadata.php/sample' ) ), 'keys' => array(...) ); i need pass parameter "target" idp startsso in...

masm - Assembly Language: Two-prompt user input (mix char and int) -

i new assembly programming , need understanding , fixing code have been struggling with: want provide user input: prompt 1: enter destination read value prompt 2: enter destination read value display distance , destination. i using vs2012 irvine32 libraries on x64 hardware. compiling x32. the problem code compiles , builds. output not proper. first prompt displayed no input. second prompt "distance" displayed entry allowed. if change first prompt have "readint" instead of "readstring", prompts in both, "invalid integer" error. why this? how fix , display input values. my code include irvine32.inc ;************************************************************************* .data querydest byte "destination", 0 querydist byte "distance", 0 destination dword ? distance dword ? .code main proc call clrscr mov edx, offset querydest call writestr...

php - Detecting if javascript is enabled with hidden form field -

it may seem repeat question, have not found appropriate answer in hundreds of answers detecting whether or not javascript enabled. home page have form requires zip code entered. if entered zip code in more 1 county, visitor returned page select state, , county. if have js enabled can provide them nice dynamic dependent drop-down menu of counties once select state. without js have return page county options. home page doesn't need js. there way use hidden field in zip code entry form let next page know if js enabled? create hidden field in form contains zipcode , fill on homepage js. once form send can check if field empty indicate js not enabled , render result page accordingly.

ruby on rails - How To Authenticate With Keys In ActionCable -

i able authenticate cookies in actioncable using cookies.signed[:user_id] can't figure out how using keys. example, sending authorization header when establishing connection. the variable accessible in applicationcable::connection class cookies . other variables ( params , headers ) not available. any ideas? i able authenticate sending authentication keys when subscribing channel. if keys invalid, calls connection.send(:reject_unauthorized_connection) in channel.