Skip to content
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

bluepages: identity directory service #940

Merged
merged 34 commits into from
Mar 5, 2025
Merged

bluepages: identity directory service #940

merged 34 commits into from
Mar 5, 2025

Conversation

bnewbold
Copy link
Collaborator

@bnewbold bnewbold commented Feb 12, 2025

Caching identity service.

NOTE: this was previously called domesday, it has been updated to bluepages to be a bit more legible.

@bnewbold bnewbold marked this pull request as ready for review February 24, 2025 01:48
@bnewbold bnewbold changed the title domesday: identity directory service bluepages: identity directory service Mar 4, 2025

// Does HTTP requests to an identity server, using standard Lexicon endpoints
type APIDirectory struct {
Client *http.Client
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious why indigo/xrpc.Client isn't the right thing here, and should we extend that so that it can be?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In this case, it is very few endpoints, and it felt easy to just use http.Client directly. These endpoints would need updates to the agnostic API package (not just codegen), and I wanted direct access to the HTTP error codes.

return app.Run(args)
}

func configLogger(cctx *cli.Context, writer io.Writer) *slog.Logger {
Copy link
Contributor

Choose a reason for hiding this comment

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

vs indigo/util/cliutil.SetupSlog() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmmm! haven't used that before. I have copied this configLogger snippet around between a bunch of projects, maybe I should add it as an alternative in cliutil.

@bnewbold bnewbold merged commit a2e0aaf into main Mar 5, 2025
10 checks passed
@bnewbold bnewbold deleted the bnewbold/domesday branch March 5, 2025 20:31
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.

2 participants