JIRA REST API performance - OAuth vs HTTP Basic Authentication -


following doco of jira rest api, oauth , http basic 2 recommended authentication. using http basic 1 https, works , safe.

is there difference on performance between them?

excluding initial token negotiation, oauth still computationally more expensive basic authentication, given larger size of secured payload, , signing requirements. non-exhaustive list of logic needs carried out:

  • request parameter normalization
  • request uri normalization
  • generate nonce
  • request signature calculation
  • reverse entire process on receiving end

compared basic authentication requires simple hashing in order calculate single required header - oauth without doubt more expensive authentication. but, important thing realize 2 authentication mechanisms serve entirely different purposes. basic auth authenticating client primary application. oauth authorizing third party access client data primary application. both have place , selecting 1 on other should driven particular use case of implementation.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -