My Oracle Support Banner

401 Unauthorized Error While Accessing Custom REST API From Custom BillingCare UI (Doc ID 2903861.1)

Last updated on OCTOBER 31, 2022

Applies to:

Oracle Communications Billing and Revenue Management - Version 12.0.0.3.0 and later
Information in this document applies to any platform.

Symptoms


On Billing Care (12.0.0.3.0) installed for test and development.

When trying to use custom REST API (Representational State Transfer Application Programming Interface) build as part of Billing Care customization customer is getting getting 401 unauthorized error.

https://docs.oracle.com/en/industries/communications/billing-revenue/12.0/billing-care-sdk-guide/customizing-billing-care1.html#GUID-BF06B18A-498B-4FD8-8584-71E1CFD622A3

Customer is following BillingCare SDK (Software Development Kit) guide 12 (link above) for building custom project. From this document in Section 4, using the below code:

++++++++++++++

Subject subject = Security.getCurrentSubject();
 
  // create new error object
 
  EnforcementError error = new EnforcementError(20020,"You are not authorized to save credit profile");
 
  EnforcementUtil.checkAccess(subject, EnforcementConstants.APPLICATION,"make","CreditProfileResourceType","CreditProfileResource",error);

++++++++++++++

Is getting: “Error 401 – Unauthorized”

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.