Skip to content

Conversation

@lishuxu
Copy link
Contributor

@lishuxu lishuxu commented Jan 2, 2026

feat: add restcatalog authentication api

/// \param properties Configuration properties.
/// \return A session for initialization, or the catalog session by default.
virtual std::shared_ptr<AuthSession> InitSession(
HttpClient* init_client,
Copy link
Contributor

Choose a reason for hiding this comment

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

why use raw pointer?🤔 use std::shared_ptr instead?

/// \param shared_client A long-lived, shared HTTP client.
/// \param properties Configuration properties (merged with server config).
/// \return A session for catalog operations.
virtual std::shared_ptr<AuthSession> CatalogSession(
Copy link
Contributor

Choose a reason for hiding this comment

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

I found these methods in java implementation may all throw exceptions, so return Result<...>?

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