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-access: Perform logout via "login" config #46

Open
sebastianbenz opened this issue Mar 19, 2016 · 1 comment
Open

amp-access: Perform logout via "login" config #46

sebastianbenz opened this issue Mar 19, 2016 · 1 comment
Assignees

Comments

@sebastianbenz
Copy link
Collaborator

Configure logout link via login config:

      "login": {
        "login": "<% host %>/amp-access/login/?rid=READER_ID&url=CANONICAL_URL",
        "logout": "<% host %>/amp-access/logout/?returnUrl=AMPDOC_URL"
      },

Then use for logout button

          <a on="tap:amp-access.logout" class="logout">Logout</a>

Explain advantage of having access to AMP runtime variables.

//cc @dvoytenko @andreban

@sebastianbenz sebastianbenz self-assigned this Mar 19, 2016
@dvoytenko
Copy link
Contributor

Small nit: it'd be tap:amp-access.login-logout. Doesn't sound great, but I guess we can always add it as a separate call in API at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants