Retrieve List of Preauthorized Resources by Second Screen Web App retrieve-list-of-preauthorized-resources-by-second-screen-web-app
NOTE
The content on this page is provided for information purposes only. Usage of this API requires a current license from Adobe. No unauthorized use is permitted.
NOTE
REST API implementation is bounded by Throttling mechanism
REST API Endpoints clientless-endpoints
<REGGIE_FQDN>:
- Production - api.auth.adobe.com
- Staging - api.auth-staging.adobe.com
<SP_FQDN>:
- Production - api.auth.adobe.com
- Staging - api.auth-staging.adobe.com
Description description
A request to Adobe Pass Authentication to obtain the list of preauthorized resources.
There are two sets of APIs: one set for the Streaming App or Programmer Service and one set for the Second Screen Web App. This page describes the API for the AuthN App.
Endpoint
Called
By
By
Input
Params
Params
HTTP
Method
Method
Response
HTTP
Response
Response
<SP_FQDN>/api/v1/preauthorize/
AuthN Module
1. registration code
(Path component)
2. requestor (Mandatory)
3. resource list (Mandatory)
(Path component)
2. requestor (Mandatory)
3. resource list (Mandatory)
GET
XML or JSON containing individual pre-authorization decisions or error details. See samples below.
200 - Success
400 - Bad request
401 - Unauthorized
405 - Method not allowed
412 - Precondition failed
500 - Internal Server Error
400 - Bad request
401 - Unauthorized
405 - Method not allowed
412 - Precondition failed
500 - Internal Server Error
Input Parameter
Description
registration code
The registration code value supplied by the user at the beginning of the authentication flow.
requestor
The Programmer requestorId for which this operation is valid.
resource list
A string that contains a comma delimited list of resourceIds that identifies the content that might be accessible to a user and is recognized by MVPD authorization endpoints.
Sample Response sample-response
XML:
HTTP/1.1 200 OK
Adobe-Request-Id : 7af28ec2-a068-45c2-8009-f5443049baf4`
Adobe-Response-Confidence : full
Content-Type: application/xml; charset=utf-8
<resources>
<resource>
<id>TestStream1</id>
<authorized>true</authorized>
</resource>
<resource>
<id>TestStream2</id>
<authorized>false</authorized>
<error>
<status>403</status>
<code>authorization_denied_by_mvpd</code>
<message>User not authorized</message>
<details>Your subscription package does not include the "TestStream3" channel.</details>
<helpUrl>https://experienceleague-review.corp.adobe.com/docs/primetime/authentication/auth-features/error-reportn/enhanced-error-codes.html#error-codes</helpUrl>
<trace>0453f8c8-167a-4429-8784-cd32cfeaee58</trace>
<action>none</action>
</error>
<resource>
</resources>
JSON:
HTTP/1.1 200 OK
Adobe-Request-Id : 7af28ec2-a068-45c2-8009-f5443049baf4
Adobe-Response-Confidence : full
Content-Type: application/json; charset=utf-8
{
"resources" : [
{
"id" : "TestStream1",
"authorized" : true
},
{
"id" : "TestStream3",
"authorized" : false,
"error" : {
"status" : 403,
"code" : "authorization_denied_by_mvpd",
"message" : "User not authorized",
"details" : "Your subscription package does not include the "TestStream3" channel.",
"helpUrl" : "https://experienceleague-review.corp.adobe.com/docs/primetime/authentication/auth-features/error-reportn/enhanced-error-codes.html#error-codes",
"trace" : "0453f8c8-167a-4429-8784-cd32cfeaee58",
"action" : "none"
}
}
]
}
recommendation-more-help
3f5e655c-af63-48cc-9769-2b6803cc5f4b