CoCalc Manual Logo

Introduction

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

Teaching

  • Instructor Guide
  • Student Guide

Features

  • ChatGPT
  • Jupyter Notebooks
  • Slides
  • Whiteboard
  • Vouchers
  • On-Premises CoCalc
  • Projects
  • LaTeX Editor
  • Sage Worksheets
  • Linux Terminal
  • Servers
  • Visual Studio Code Server
  • Backups
  • Graphical Applications
  • Chatrooms
  • Task Lists
  • Stopwatches and Timers
  • Frame Editor
  • Markdown
  • Rich Text Editing
  • CSV Viewer
  • Time Travel
  • Snippets
  • Shared Files

Platform

  • Display Options
  • Top Toolbar
  • Account Dropdown Menu
  • Activity Bar
  • Project Home
  • Explorer
  • (+) New
  • Default contents for new files
  • Project Log
  • Files Search
  • Processes
  • Project Settings
  • Account Toolbar
  • Billing/Upgrades FAQ
  • Software
  • iPad
  • Howto
  • Troubleshooting
  • API v2
  • API v1
    • 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_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
  • CoCalc Cloud
  • CoCalc Desktop

Appendix

  • References
  • Index
CoCalc Manual
  • API v1
  • unlink_passport
  • Ask us a Question!

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.

Previous Next

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

Please contact us for Questions and Feedback, Documentation Repository, Privacy Policy and ToS.

Edit this page on GitHub

Start CoCalc – start free, upgrade later!

Start CoCalc