CoCalc Manual Logo

Introduction

  • What is CoCalc?
  • Getting Started
  • Licenses
  • News
  • Trial Projects

Teaching

  • Instructor Guide
  • Student Guide
  • Notes

Features

  • Jupyter Notebooks
  • LaTeX Editor
  • Sage Worksheets
  • Linux Terminal
  • Graphical Applications
  • Chatrooms
  • Task Lists
  • Frame Editor
  • Time Travel
  • Snippets
  • Sharing Files

Platform

  • Projects
  • Account
  • Billing/Upgrades FAQ
  • Software
  • iPad
  • Howto
  • Troubleshooting
  • API
    • Purpose
    • Protocol and Data Format
    • Authentication
    • Additional References
    • API Message Reference
      • add_collaborator
      • add_license_to_project
      • change_email_address
      • change_password
      • copy_path_between_projects
      • copy_path_delete
      • copy_path_status
      • copy_public_path_between_projects
      • create_account
      • create_project
      • create_support_ticket
      • delete_account
      • disconnect_from_project
      • forgot_password
      • get_available_upgrades
      • get_support_tickets
      • get_usernames
      • invite_collaborator
      • invite_noncloud_collaborators
      • log_client_error
      • metrics
      • ping
      • project_exec
      • public_get_directory_listing
      • public_get_text_file
      • query
      • read_text_file_from_project
      • remove_collaborator
      • remove_license_from_project
      • reset_forgot_password
      • start_metrics
      • touch_project
      • unlink_passport
      • user_auth
      • user_search
      • write_text_file_to_project
      • API Examples & Howto
    • Copy a file between projects
    • Embedding in an IFrame
    • IFrame communication
  • CoCalc Docker Image

Appendix

  • References
  • Index
CoCalc Manual
  • »
  • API »
  • unlink_passport
  • Edit on GitHub

unlink_passport¶

  • strategy: passport strategy (required)
  • id: numeric id for user and passport strategy (required)

Unlink a passport auth for the account.

Strategies are defined in the database and may be viewed at /auth/strategies.

Example:

Get passport id for some strategy for current user.

curl -u sk_abcdefQWERTY090900000000: \
  -H "Content-Type: application/json" \
  -d '{"query":{"accounts":{"account_id":"e6993694-820d-4f78-bcc9-10a8e336a88d","passports":null}}}' \
  https://cocalc.com/api/v1/query
==> {"query":{"accounts":{"account_id":"e6993694-820d-4f78-bcc9-10a8e336a88d",
                          "passports":{"facebook-14159265358":{"id":"14159265358",...}}}},
     "multi_response":false,
     "event":"query",
     "id":"a2554ec8-665b-495b-b0e2-8e248b54eb94"}

Unlink passport for that strategy and id.

curl -u sk_abcdefQWERTY090900000000: \
  -d strategy=facebook \
  -d id=14159265358 \
  https://cocalc.com/api/v1/unlink_passport
==> {"event":"success",
     "id":"14159265358"}

Note that success is returned regardless of whether or not passport was linked for the given strategy and id before issuing the API command.


This information is based on 86c0a8a7d1 exported at 2020-09-17T03:08:33.230Z.

Next Previous

© Copyright 2021, Sagemath, Inc., CC BY-4.0 licensed.

Please contact us for any feedback, Doc Repository, Privacy Policy and ToS

Start CoCalc – start free, upgrade later!

Start CoCalc