Repository navigation
Updating Go SSO Example - #37
Merged
Merged
Conversation
jmacelroy
commented
May 21, 2026
Contributor
- Adding Github as a login option
- Fixed a panic with large profiles by only string first and last name in the cookie but printing out the entire raw profile in the callback
- Added fresh links to the README where there were stale 404s
- Addressed some style/idiom nits in the Go
- Made the WorkOS logo blend in with the background of the html
- Add a GitHub OAuth login button so the example covers the third common social provider alongside Google and Microsoft, and drop the card's fixed height so all four buttons fit. - Replace CookieStore with FilesystemStore (1MB MaxLength) so the raw profile JSON written into the session on callback no longer trips "securecookie: the value is too long" and panics the handler. - Redact the API key in the startup log so logs can be shared during local debugging. - Rename Profile fields to Go-idiomatic names (FirstName, LastName, RawProfile) and update the logged_in.html template reference to match. - Apply mix-blend-mode: multiply to the nav logo so its white PNG background blends into the page background.
the full profile JSON in the session. The profile is only useful on
the immediate /callback response, so persisting it across requests
is unnecessary. Instead:
- Switch back to CookieStore. Session now carries only
authenticated/first_name/last_name, well under the 4KB cookie limit.
- Render the full profile JSON on /callback directly from the fresh
GetProfileAndToken response.
- /logged_in revisits render the name only; logged_in.html conditionally
shows the profile block when RawProfile is set.
marktran
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.