Sluby
REST APIAuth

Begin a Studio sign-in with a provider.

Sets the short-lived `sluby_signin` cookie (path /api/v1/auth) holding the handshake state and where to land afterwards, then redirects to the provider. `next` is a path on this server; anything that would leave the origin falls back to /studio.

GET
/api/v1/auth/{provider}/login

Sets the short-lived sluby_signin cookie (path /api/v1/auth) holding the handshake state and where to land afterwards, then redirects to the provider. next is a path on this server; anything that would leave the origin falls back to /studio.

Path Parameters

provider*"github"

The sign-in provider.

Value in"github"

Query Parameters

next?string

Studio path to land on after sign-in, /studio by default.

invite?string

An invite token: join as a new member with this provider account instead of signing in. The token stays in the handshake cookie and is never sent to the provider.

Response Body

Redirect to the provider, or back to next with signin_error: not_configured when the provider is not configured on this server, invite_not_found for a malformed invite token, not_signed_in for link=1 without a session.

Example Request
curl -X GET 'https://sluby.example.com/api/v1/auth/github/login'
Example Response
Empty