Skip to main content
Skip table of contents

Reset Authentication

Summary

This API provides the ability to reset the password for an existing customer for authentication. This will update the current password for the user and update it to a temporary random password that should be changed upon log in.

  • Prior to using the Authentication APIs a Password Policy and Authentication Namespace must be setup. Please contact your Account Representative to start the setup process.

Base Resource URI

CODE
For Production, use: https://ows.omeda.com/webservices/rest/brand/{brandAbbreviation}/authentication/resetpassword/*

For Testing, use: https://ows.omedastaging.com/webservices/rest/brand/{brandAbbreviation}/authentication/resetpassword/*

brandAbbreviationis the abbreviation for the brand to which the data is being posted.

Technical Requirements

The HTTP header must contain the following elements: x-omeda-appid a unique id provided to you by Omeda to access your data. The request will fail without a valid id.content-typea content type supported by this resource. See Supported Content Types for more details.

Supported Content Types

JSONapplication/json

JSON is the preferred data exchange format, because it is lightweight and, in most cases, faster to process and utilizes less bandwidth. There are many available open-source JSON libraries available. See json.org for details.

Supported HTTP Methods

There is one HTTP method supported:PUTSee W3C’s PUT specs for details.

Field Definition

The following tables describe the data elements that can be included in the POST method to store authentication data in the database. All fields are required

Authentication Elements

Attribute Name

Description

Username

the username for this customer and namespace. Username must be unique for the Brand & Namespace combination.

ExternalCustomerIdNamespace

the namespace associated with the authentication instance.

Request Examples

JSON Example

CODE
{
   "Username":"someUser",
   "ExternalCustomerIdNamespace":"AbcAuth"
}

Response Examples

Two responses are possible: a successful POST (200 OK Status) or a failed POST (400 Bad Request/403 Forbidden/404 Not Found/405 Method Not Allowed Statuses). See W3C’s Status Codes.

Successful Submission

A successful POST submission will create a Transaction in the data queue. The response has a ResponseInfo element with two sub-elements, a TransactionId element, the Id for the transaction, and a Url element, the URL that allows you to check the status of your transaction. See Transaction Lookup Service for more details.

JSON Example

CODE
{
   "ResponseInfo":[
      {
         "Password":"ZWGNKGW668",
         "Warning":"Password will expire on 07-09-2016 17:45:33",
         "Success":"Password reset for authuser11"
      }
   ],
   "SubmissionId":"23e94d98-ae92-4c6e-a886-8bc9ca2a0096"
}

Error Response

In the event of an error, an error response will be returned. This will result in an HTTP Status 400 Bad Request/404 Not Found/405 Method Not Allowed.

Potential errors:

CODE
Username is required 
Username cannot be blank 
ExternalCustomerIdNamespace is required 
ExternalCustomerIdNamespace cannot be blank 
ExternalCustomerIdNamespace not found 
PasswordPolicy not found for Brand.
No customers found with Username {username}
Multiple users found with Username {username}. Cannot reset password. 

A failed POST submission error codes:

Status

Description

400 Bad Request

Typically, this error occurs when the request does not follow the specifications.

403 Forbidden

Typically, this error occurs when the credentials are erroneous. Potentially, an incorrect x-omeda-appid.

404 Not Found

Typically, this error occurs with a malformed URL or the resource that is searched for is not found.

405 Method Not Allowed

Typically, this error occurs when the resource accessed is not allowed by the HTTP Method utilized. Make sure you employ the correct HTTP Method (POST) for this request.

500 Internal Server Error

In the rare case that there is a server-side problem, this response will be returned. This generally indicates a problem of a more serious nature, and submitting additional requests may not be advisable. Please contact your Omeda Account Representative if the issue continues.

This is not an exhaustive list of errors, but common ones. If an error occurs repeatedly, please contact your Omeda representative.

JSON Example

CODE
{
   "SubmissionId":"752651dd-8b0c-47c6-848d-759ee6aacc79",
   "Errors":[
      {
         "Error":"ExternalCustomerIdNamespace not found"
      }
   ]
}

Table of Contents

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.