-
Notifications
You must be signed in to change notification settings - Fork 161
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
Conversation
16f1f31
to
3ffa202
Compare
3ffa202
to
ee1f3ea
Compare
|
||
// Does HTTP requests to an identity server, using standard Lexicon endpoints | ||
type APIDirectory struct { | ||
Client *http.Client |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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() ?
There was a problem hiding this comment.
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
.
Caching identity service.
Resolver
interface; andSkipHandleVerification
flag onBaseDirectory
#872identity.Directory
interface)#identity
events)NOTE: this was previously called
domesday
, it has been updated tobluepages
to be a bit more legible.