Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amp-subscription authorizationUrl not being called #38983

Open
phaneendraandukuri opened this issue May 19, 2023 · 0 comments
Open

amp-subscription authorizationUrl not being called #38983

phaneendraandukuri opened this issue May 19, 2023 · 0 comments

Comments

@phaneendraandukuri
Copy link

Description

According to the documentation https://amp.dev/documentation/components/amp-subscriptions. A JSON object should be passed as a child to this script <script type="application/json" id="amp-subscriptions"></script> and then an API call must be made to the authorizationUrl provided as a child. But There is no api call being made now.

Reproduction Steps

  1. See this script is coming in the DOM tree
<script type="application/json" id="amp-subscriptions">
          {`{
            "services": [
              {
                "authorizationUrl": "https://pub.com/amp-authorisation?rid=READER_ID&url=SOURCE_URL",
                "pingbackUrl": "https://pub.com/amp-pingback?rid=READER_ID&url=SOURCE_URL",
                "actions": {
                  "login": "https://pub.com/amp-login?rid=READER_ID&url=SOURCE_URL",
                  "subscribe": "https://pub.com/amp-subscribe?rid=READER_ID&url=SOURCE_URL"
                }
              }
            ],
            "score": {
              "supportsViewer": 10,
              "isReadyToPay": 9
            },
            "fallbackEntitlement": {
              "source": "fallback",
              "granted": true,
              "grantReason": "SUBSCRIBER",
              "data": {
                "isLoggedIn": false
              }
            }
          }`}
        </script>
  1. Go to network tab and see if the api call is being made to the authorizationUrl provided inside the services.

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

@powerivq powerivq changed the title API amp-subscription authorizationUrl not being called Jul 20, 2023
@erwinmombay erwinmombay self-assigned this Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants