# InnoShape auth.md

How AI agents sign in to InnoShape, a functional wellness and body-shaping clinic in Norwest, Sydney.
Bookings and accounts run on Porter, the booking system behind the booking page, and Porter's login
is the only sign-in: https://porter.innoshape.com.au/login

## Who this is for

- Agents acting for an InnoShape client, or for someone booking their first consultation.
- Agents acting for InnoShape staff, connected with the staff member's own login.

## No sign-in needed

- **Reading the site.** Every page is public. Request any page with `Accept: text/markdown` to get it as Markdown; https://innoshape.com.au/llms.txt lists them.
- **Booking a free consultation.** https://innoshape.com.au/book-a-free-consultation takes a guest booking: a service, a date and time, then the person's full name and mobile number. No email or account needed.
- **Booking through A2A.** https://innoshape.com.au/.well-known/agent-card.json describes an A2A 1.0 agent that relays to the same booking assistant: services, prices, free times and guest bookings.

## Registration

- **Clients** register at https://porter.innoshape.com.au/login with "New here? Create an account": an email and a password of at least 8 characters, then the verification link Porter emails them. Use the email they booked with: Porter links their appointments by email, so an account under another email shows none.
- **Staff** accounts are created by InnoShape in Porter. There is no public staff sign-up.
- **Agent software** (staff only, see below) registers as an OAuth client at the `registration_endpoint` in https://pcjpqzpgdojhovknrsrj.supabase.co/.well-known/oauth-authorization-server/auth/v1 (dynamic client registration, RFC 7591).

## Sign-in methods

Porter's login at https://porter.innoshape.com.au/login:

- Email and password.
- "Email me a sign-in link instead": a one-time link or 6-digit code by email, no password.

Accounts with an authenticator app enrolled also enter its code. The person signs in themselves:
never ask for their password, codes or verification email.

## Credentials for agents

### Acting for a client: none

Porter does not give agents a client's session; its OAuth consent screen accepts staff accounts only.
Send the client to https://porter.innoshape.com.au to see, cancel or reschedule their appointments, or book a new
consultation as a guest (above).

### Acting for staff: OAuth 2.1

- **Resource:** https://cwbmkpbphzpesjgvnikw.supabase.co/functions/v1/hj-porter, a remote MCP server for running the clinic. A request without a token gets a `WWW-Authenticate` challenge naming its protected resource metadata: https://cwbmkpbphzpesjgvnikw.supabase.co/functions/v1/hj-porter/.well-known/oauth-protected-resource
- **Authorization server:** issuer `https://pcjpqzpgdojhovknrsrj.supabase.co/auth/v1`, metadata at https://pcjpqzpgdojhovknrsrj.supabase.co/.well-known/oauth-authorization-server/auth/v1
- **Flow:** authorization code with PKCE (`S256`). The staff member signs in to Porter and approves the agent at https://porter.innoshape.com.au/oauth/consent. InnoShape can restrict hj-porter to listed accounts; others get `403`.
- **Scopes:** `email`, `profile`.
- **Using it:** send `Authorization: Bearer <access_token>`. The token is the staff member's Porter session, so the agent can do exactly what they can in Porter. It expires after an hour; renew it with the `refresh_token` grant.
- **Agents that only take a fixed header:** an InnoShape owner can create an AI assistant token (`porter_su_…`) in Porter under Team → AI assistant tokens → "New token". Send it the same way; "Revoke" there stops it working at once.

## Not for agents acting for the public

https://innoshape.com.au/.well-known/oauth-protected-resource describes `/_emdash/api/mcp`, the content API used by
the website's editors. It has nothing to do with clients or bookings; don't register there on anyone's behalf.

## Contact

Phone 0404 110 228 · info@innoshape.com.au
