Description
Motivation: Using CoCalc as a backend for an iPad application.
We create a page that looked exactly like our current cocalc sign in page, but after the sign in completes, the browser just displays the api_key for that user rather than loading the normal cocalc application. The client ipad app would then have the api key. In particular, imagine that visiting
https://cocalc.com/app?get_api_key=true
would ALWAYS show the sign in screen, require the user to manually do something, and once sign is completed successfully, simply show the api_key. Your app could send the user to the above URL whenever their api key is rejected (e.g., they reset/change/invalidate it) or isn't known. Then we could support generating api keys for users that don't have a username or password.
Requesting an api key for a user with no email/password would also show a link to the above URL.