ClientUtils.CodeMySpecClient (client_utils v0.5.0)

View Source

Owner-approved, project-scoped installation credentials. Never exposed to visitors.

Summary

Functions

Build a client from the host application's CodeMySpec configuration.

Make a project-authenticated request; credentials stay on this host.

Create or update an end user on this installation's approved project.

Mint a short-lived socket credential for a host-authenticated visitor.

Functions

begin_authorization(server, project_id, scopes \\ ["widget"])

new(otp_app)

Build a client from the host application's CodeMySpec configuration.

poll(grant, path)

request(client, method, route, body \\ %{})

Make a project-authenticated request; credentials stay on this host.

upsert_user(client, user)

Create or update an end user on this installation's approved project.

widget_socket_token(client, user_id, email)

Mint a short-lived socket credential for a host-authenticated visitor.