Authenticating to Web Services - Spectrum_OnDemand - web_services - 23.1

Spectrum Web Services Guide

Product type
Software
Portfolio
Integrate
Product family
Spectrum
Product
Spectrum > Web Services
Version
23.1
Language
English
Product name
Spectrum Technology Platform
Title
Spectrum Web Services Guide
First publish date
2007
Last updated
2024-10-17
Published on
2024-10-17T00:33:46.811413

Spectrum Technology Platform web services use HTTP basic authentication. In HTTP basic authentication, the user ID and password are encoded in base64 and passed to Spectrum Technology Platform in the HTTP header of each request to the web service.

To authenticate to Spectrum Technology Platform web services:

  1. Encode your Spectrum Technology Platform user name and password in base64 in this format:

    UserName:Password

    You can use any base64 encoder to encode your user name and password, including freely available encoders available on the web.

    For example, if your user name is MyUsername and your password is Password1, you would encode this string in base64:

    MyUsername:Password1

  2. Include the base64-encoded user name and password in the Authorization header in the request, in this format:
    Authorization: Basic EncodedUsernameAndPassword

    For example,

    GET https://spectrum.precisely.com/rest/PsapAhjLookupUS/results.xml?Data.AddressLine1=4200%2BParliament%2BPL&Data.City=Lanham&Data.StateProvince=MD 
    HTTP/1.1
    Host: spectrum.precisely.com
    Authorization: Basic YmFsaTk0OXk6Z3JvqXAh
    POST https://spectrum.precisely.com:8080/soap/PsapAhjLookupUS 
    HTTP/1.1
    Host: spectrum.precisely.com:8080
    Authorization: Basic YmFsaTk0OXk6Z3JvqXAh