Skip to content

Add --login-origin options and Make it single input option - #91

Open
dodok8 wants to merge 12 commits into
mainfrom
trailing-dot
Open

dodok8 wants to merge 12 commits into
mainfrom
trailing-dot

Conversation

@dodok8

@dodok8 dodok8 commented Sep 20, 2026

Copy link
Copy Markdown
Member

Closes: #81

Change:

  • Add --login-origin options for running Sever
  • Check login origin with value of URL of --login-origin and its origin.
  • Use .env to set value, like --root-origin.

@2chanhaeng 2chanhaeng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, tests for #81 are needed.
Also, this PR seems to contain more changes related to reducing multiple origins to a single origin than changes related to #81. Wouldn’t it be better to keep the PR and create a separate issue for this? It would also be helpful to include in the issue the reasons for changing to a single origin.
It also seems that the documentation needs to be updated. Searching the codebase for DRFED_LOGIN_ORIGINS, loginOrigins, and similar terms still turns up a lot of outdated documentation.

Comment thread scripts/dev.mts Outdated
@dodok8
dodok8 requested a review from 2chanhaeng September 27, 2026 05:51

@dahlia dahlia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up on @2chanhaeng's review: please add a regression test that configures https://app.example. and verifies that a login link on https://app.example is accepted. Cover the CLI configuration path and direct createYogaServer() usage, and keep IP literals allowed. The current test changes only adapt existing tests to the new interface.

I agree that the single-origin restriction belongs in a separate discussion. The reply on #81 explains why multiple origins can be useful.

Comment thread packages/graphql/src/index.ts Outdated
Comment thread packages/drfed/src/parser.ts Outdated
Comment thread packages/drfed/.env.example Outdated
Comment thread scripts/dev.mts Outdated
@dodok8

dodok8 commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

@dahlia Rather than switching from supporting multiple options to supporting only one and then back to supporting multiple options again, I think it would be better to make this PR the final step in switching to supporting multiple options.

Assited-by Codex: gpt-6.1-sol

Prompt
``
Fix CLI's readme and dev.mts' comment about --login-origin
```
Assisted-by Codex:gpt-6.1-sol

Prompt
```
Make a CLI regression test in login.test.ts.
```
@dodok8
dodok8 requested a review from dahlia September 30, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

DRFED_LOGIN_ORIGINS does not normalize a trailing dot

3 participants