Search code examples
magentooauthauthorizationmagento-rest-api

Magento REST api authentication


Is there a way to pass login credentials from code instead of entering credentials everytime in the popup for login authorization?


Solution

  • You dont require login credentials every time for authorization,you'll get an access token and access secret upon successfull authorization by OAuth,use the later for further calls to the API.Oauth protocol works this way.

    I guess Magento is using OAuth 1.0/1.0a,so everytime you'll authorize a user you get,

    oauth_token - the Access Token that provides access to protected resources.

    oauth_token_secret - the secret that is associated with the Access Token.