Skip to content

fix: correct the derivedSectorIdentifier JavaDoc null condition - #172

Open
watahani wants to merge 1 commit into
masterfrom
fix/derived-sector-identifier-javadoc
Open

fix: correct the derivedSectorIdentifier JavaDoc null condition#172
watahani wants to merge 1 commit into
masterfrom
fix/derived-sector-identifier-javadoc

Conversation

@watahani

@watahani watahani commented Sep 8, 2026

Copy link
Copy Markdown
Member

JavaDoc-only change on Client#getDerivedSectorIdentifier / #setDerivedSectorIdentifier.

The old text said the value is undefined when no sector_identifier_uri is registered and multiple redirect_uris are registered. The value is null (not undefined) only when the registered redirect URIs do not yield a single host component, so several redirect URIs sharing one host do produce a value. The two other null cases — no redirect URI registered, and a redirect URI with no host component such as com.example.app:/callback — are now stated as well.

The value is computed server-side by ClientEntity.deriveSectorIdentifier(): if sectorIdentifierUri is set its host component is used, otherwise the host components of all registered redirect URIs are collected into a Set and returned only when exactly one distinct value remains.

The same wording is corrected in the API Docs specs (authlete/new-api-doc!192) and in the server-side JavaDoc (authlete/server!2527).

Review

No sub-agent review loop was run: the 3-loop pre-merge rule covers MRs against the support skills repo, and this is a comment-only change.

Ref: ClickUp CU-86eyuyzwj

The JavaDoc said the value is undefined when no sector_identifier_uri is
registered and multiple redirect_uris are registered. The value is null
only when the registered redirect_uris do not yield a single host
component, and it is null rather than undefined.
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.

1 participant