Skip to content

docs: Project ID location and identity tokens in README, Javadoc and sample - #64

Merged
boehlerlukas merged 2 commits into
masterfrom
docs/project-id-identity-tokens
Nov 7, 2026
Merged

boehlerlukas merged 2 commits into
masterfrom
docs/project-id-identity-tokens

Conversation

@boehlerlukas

Copy link
Copy Markdown
Contributor

Docs-only follow-up to 19.5.0 so the SDK describes itself the way the release works. No runtime code, no version bump, no tag.

What was wrong

  • README: the Project ID was said to be "on the SDK install page and under Settings → Project" (it is under Settings → Project → General); the quick start was Java only and pinned version 19.0.0; the docs links pointed to docs.gleap.ai/documentation/..., and the Customer identity link (/documentation/guides/customer-identity) is a 404; the identity section offered the user hash as an alternative ("Instead of a token you can still identify with a user hash", with a code sample) and the sign-in sample had no logout (clearIdentity); the identity key path was missing the "Customer identity" step.
  • Javadoc: initialize pointed to "Settings → Project or the SDK install page"; openProtectedFileFromUrl told apps to "identify the user with their user hash"; identify* didn't say an identify without a token is unsigned; setUserJwt didn't say no separate identify is needed or where the identity key lives; clearIdentity didn't say to call it on logout; GleapSessionProperties constructors said "The hash is as HMAC hash" even on constructors without a hash.
  • Sample app: the "identifyUser(id, User Properties, Hash)" button signed in with a hard-coded user hash.
  • POM description (gradle.properties): still the old bug-reporting tagline ("Know exactly why and how a bug happened ...").

What changed

  • README.md: Project ID location, Kotlin snippet, dependency 19.5.0, sign-in with setUserJwt (after login and on every app start) / optional setUserJwtProvider / clearIdentity on logout; user hash only as "older integrations keep working" with the Upgrade to identity tokens link; links to Android setup, Android user identity and Customer identity.
  • Gleap.java, iGleap.java, GleapSessionProperties.java: Javadoc only, no signatures or behavior changed.
  • app/: the hash button now calls setUserJwt with a marked placeholder token (TOKEN_FROM_YOUR_BACKEND, logged and refused until replaced); the null-identify test button no longer passes a null hash.
  • gradle.properties: POM_DESCRIPTION now matches the README's first sentence. Maven Central only picks this up with the next release; no version bump here.

Left alone: the 19.5.0 CHANGELOG entry (accurate), internal sdkKey field/comments and wire names (sdkKey, apiKey, Api-Token, userHash) since renaming them would be a runtime change, tests, and the sample app's demo project value.

Not built locally (no JDK 17 on this machine; Gradle 8.10 does not run on JDK 25). CI compiles and tests the library; the sample changes only use existing public API (setUserJwt, the 3-argument GleapSessionProperties constructor).

🤖 Generated with Claude Code

boehlerlukas and others added 2 commits November 7, 2026 18:04
…sample

- README: Project ID under Settings → Project → General, Kotlin quick start,
  dependency 19.5.0, sign-in with setUserJwt / setUserJwtProvider / clearIdentity,
  user hash only as older integrations, new docs.gleap.ai links (the old
  customer-identity link is a 404).
- Javadoc (comments only): initialize, identify*, setUserJwt, clearIdentity,
  openProtectedFileFromUrl, GleapSessionProperties.
- Sample app: the identify-with-hash button now shows setUserJwt.
- POM description matches the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboard link now points to app.gleap.ai (app.gleap.io redirects there),
and protected conversation files refer to "Protect new files" under
Settings → Security → Conversation files instead of the former
"Require authenticated file access" (Project settings → User identity).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boehlerlukas
boehlerlukas merged commit 7dae7be into master Nov 7, 2026
1 check passed
@TobiasDuelli
TobiasDuelli deleted the docs/project-id-identity-tokens branch November 18, 2026 20:39
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