Symantec Access Management

Expand all | Collapse all

CURL command to authenticate via siteminder

  • 1.  CURL command to authenticate via siteminder

    Posted Oct 08, 2018 10:38 PM

    Hi All,

     

    We have protected resource with basic authentication scheme and that works when we are accessing via browser client. However, I wanted to know how that can be achieved via curl command. Please suggest.



  • 2.  Re: CURL command to authenticate via siteminder
    Best Answer

    Posted Oct 08, 2018 10:52 PM

    Here you go Authentication · Everything curl  

     

     

    curl - Manual  
    HTTP      Curl also supports user and password in HTTP URLs, thus you can pick a file    like:           curl http://name:passwd@machine.domain/full/path/to/file      or specify user and password separately like in           curl -u name:passwd http://machine.domain/full/path/to/file     HTTP offers many different methods of authentication and curl supports    several: Basic, Digest, NTLM and Negotiate (SPNEGO). Without telling which    method to use, curl defaults to Basic. You can also ask curl to pick the    most secure ones out of the ones that the server accepts for the given URL,    by using --anyauth.      NOTE! According to the URL specification, HTTP URLs can not contain a user    and password, so that style will not work when using curl via a proxy, even    though curl allows it at other times. When using a proxy, you _must_ use    the -u style for user and password.    HTTPS      Probably most commonly used with private certificates, as explained below.