Skip to content

[examples/hackernews] Example OAuth flow. #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4,208 commits into
base: main
Choose a base branch
from

Conversation

beauby
Copy link
Contributor

@beauby beauby commented Feb 26, 2025

No description provided.

bennostein and others added 30 commits January 31, 2025 15:30
…pLabs#710)

Related to previous issues with sequencing of unsubscribe/shutdown, this
stops printing spurious error messages surfaced by SkipLabs#708 .
Users might need to know about them, and they are referenced from the
docs.
To ensure all are changed when clang is changed
- Avoid duplicate code
- Preparation for updating LLVM
Adds a minimal static analyzer (`shellcheck`) to check our shell
scripts.

It takes about 3 seconds so I added it to the job that checks formatting
mbouaziz and others added 28 commits February 28, 2025 11:01
For example `skargo build --skcopt --no-inline --skcopt --no-peephole`
will make calls to `skc` start with `--no-inline --no-peephole`.

Inspired by `ocamlc`'s `-ccopt`
See [discord
thread](https://discord.com/channels/1093901946441703434/1345016769634500698)
for context -- triggers were failing to fire on certain updates with
null fields, since a row "IS NOT NULL" in postgres only when ALL of its
fields are non-null.
Another version bump, this time to pull in SkipLabs#779
- Remove stale `RETURNING id` clauses, following move to the postgres
adapter.
- Use parameterized queries to avoid sql injections.
Add a dummy login flow (checks only the email, not the password),
which allows proper tracking of upvotes and new posts authors. It will
also serve as a foundation for the OAuth login example.
Vanity layout feature: add relative time point to each post (eg. "X
minutes ago").
Add a special API end point that simulate series of 1 to 20 upvotes to
a random post every second.
The OAuth client id (resp. secret) is loaded from
`examples/hackernews/gh_oauth_client_id.txt` (resp. `examples/hackernews/gh_oauth_secret.txt`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants