[GH-ISSUE #251] [Feature]: Support OAuth-based Pygmalion accounts #96

Closed
opened 2026-10-20 17:25:04 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Ponesicek on GitHub (Apr 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/251

Originally assigned to: @LukaTheHero on GitHub.

What problem does this solve?

Pygmalion authentication in Bot Browser currently expects direct email/password credentials.
Users who sign in to Pygmalion via OAuth do not have a native password they can use, so login fails for them even though they have a valid session/token.

This blocks OAuth users from enabling NSFW content and other authenticated Pygmalion features.

Proposed solution

Add an OAuth-compatible token flow in the Pygmalion auth modal:

  • Add a "Use token" input path that submits to existing POST /api/bot-browser/pygmalion/set-token.
  • Keep current email/password login unchanged for users with native credentials.
  • Add a small collapsible help section in the modal: "How to extract token", following the same UX pattern CharacterTavern already uses for "How to get your session cookie".

Alternatives considered

Current workaround is manual devtools extraction + manual curl API call to /pygmalion/set-token.
It works technically but is not discoverable and is too advanced for most users.

Additional context

Relevant existing pieces:

  • Backend already supports token injection:
    • POST /api/bot-browser/pygmalion/set-token
    • GET /api/bot-browser/pygmalion/session
  • Frontend currently only offers email/password for Pygmalion.
  • CharacterTavern already has the desired helper UX pattern in the same modal (<details> section for cookie extraction).

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @Ponesicek on GitHub (Apr 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/251 Originally assigned to: @LukaTheHero on GitHub. ## What problem does this solve? Pygmalion authentication in Bot Browser currently expects direct email/password credentials. Users who sign in to Pygmalion via OAuth do not have a native password they can use, so login fails for them even though they have a valid session/token. This blocks OAuth users from enabling NSFW content and other authenticated Pygmalion features. ## Proposed solution Add an OAuth-compatible token flow in the Pygmalion auth modal: - Add a "Use token" input path that submits to existing `POST /api/bot-browser/pygmalion/set-token`. - Keep current email/password login unchanged for users with native credentials. - Add a small collapsible help section in the modal: **"How to extract token"**, following the same UX pattern CharacterTavern already uses for **"How to get your session cookie"**. ## Alternatives considered Current workaround is manual devtools extraction + manual curl API call to `/pygmalion/set-token`. It works technically but is not discoverable and is too advanced for most users. ## Additional context Relevant existing pieces: - Backend already supports token injection: - `POST /api/bot-browser/pygmalion/set-token` - `GET /api/bot-browser/pygmalion/session` - Frontend currently only offers email/password for Pygmalion. - CharacterTavern already has the desired helper UX pattern in the same modal (`<details>` section for cookie extraction). ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:04 +07:00
Author
Owner

@LukaTheHero commented on GitHub (Apr 27, 2026):

Yep, that's my territory, I'll handle it.

<!-- gh-comment-id:4330771777 --> @LukaTheHero commented on GitHub (Apr 27, 2026): Yep, that's my territory, I'll handle it.
Author
Owner

@LukaTheHero commented on GitHub (Apr 28, 2026):

@Ponesicek fixed in https://github.com/Pasta-Devs/Marinara-Engine/pull/273

<!-- gh-comment-id:4332177630 --> @LukaTheHero commented on GitHub (Apr 28, 2026): @Ponesicek fixed in https://github.com/Pasta-Devs/Marinara-Engine/pull/273
Author
Owner

@Dark-Thoughts commented on GitHub (May 3, 2026):

This site's login attempt just gives me a 500 error code.

<!-- gh-comment-id:4365689204 --> @Dark-Thoughts commented on GitHub (May 3, 2026): This site's login attempt just gives me a 500 error code.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#96
No description provided.