• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / auth
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: twitter-v2-oauth2
DEFAULT BRANCH: master
Repo Added 26 Dec 2018 08:17AM UTC
Files 25
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH twitter-v2-oauth2
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • allowed-provider-check
  • apple-reponse-mode-fix
  • aud-secrets
  • ava-factory
  • avatar-errnotfound
  • avatar-identicon-size
  • chore/go-fix
  • ci/codeql-v2
  • ci/go-1.26-golangci-2.12
  • ci/go-version-from-go-mod
  • configurable-microsoft-tenant
  • cookie-domain
  • custom-dev-host
  • custom-dev-port
  • dependabot/go_modules/_example/github.com/go-chi/chi/v5-5.2.2
  • dependabot/go_modules/_example/golang.org/x/crypto-0.17.0
  • dependabot/go_modules/_example/golang.org/x/image-0.38.0
  • dependabot/go_modules/_example/golang.org/x/image-0.5.0
  • dependabot/go_modules/_example/golang.org/x/net-0.17.0
  • dependabot/go_modules/_example/golang.org/x/net-0.7.0
  • dependabot/go_modules/golang.org/x/crypto-0.31.0
  • dependabot/go_modules/golang.org/x/image-0.38.0
  • dependabot/go_modules/golang.org/x/image-0.41.0
  • dependabot/go_modules/v2/github.com/golang-jwt/jwt/v5-5.2.2
  • dependabot/go_modules/v2/golang.org/x/crypto-0.31.0
  • dependabot/go_modules/v2/golang.org/x/crypto-0.45.0
  • dependabot/go_modules/v2/golang.org/x/crypto-0.52.0
  • dependabot/go_modules/v2/golang.org/x/image-0.41.0
  • dependabot/go_modules/v2/golang.org/x/net-0.33.0
  • dependabot/go_modules/v2/golang.org/x/net-0.36.0
  • deps-refresh
  • direct-custom-id
  • direct-hex-userid
  • docs/anonymous-linking
  • docs/comment-sweep
  • docs/microsoft-signin-audience
  • dverhoturov/telegram_fix
  • email-send-context
  • email-sender
  • feat/csrf-middleware
  • feat/github-numeric-id
  • feat/oauth2-pkce
  • feat/partitioned-cookies
  • feat/sender-helo-host
  • feat/telegram-api-url
  • feat/telegram-chat-id-attribute
  • feature/custom-error-handler
  • fix-anon
  • fix-content-type-header
  • fix-oauth-from-open-redirect
  • fix-oauth-sendjwtheader
  • fix-providers-names
  • fix-refresh-cache-test-flake
  • fix/admin-passwd-log-leak
  • fix/apple-id-token-iss-aud
  • fix/apple-jwk-cache
  • fix/apple-log-redact-token-response
  • fix/auth-sensitive-logging
  • fix/avatar-content-type-spoofing-xss
  • fix/csp-consumer-note
  • fix/dev-custom-bind-localhost
  • fix/documented-auth-params
  • fix/email-sender-redact-body
  • fix/go127-image-assertions
  • fix/go127-test-assertions
  • fix/gridfs-concurrent-put
  • fix/gridfs-revisions
  • fix/nil-avatar-store
  • fix/panic-save-ava-nil
  • fix/see-other-redirect-after-auth
  • fix/telegram-redact-bot-token-in-avatar-url
  • fix/v1-from-redirect-validator
  • fix/verify-replay
  • fix/verify-replay-typed-nil-followup
  • followups/security-review
  • github-enterprise-provider
  • go1_20
  • jwt-header
  • master
  • microsoft
  • migrate-example-to-routegroup
  • no-ava
  • oauth-handshake-cookie-only
  • official-mongo-drvier
  • paskal/HttpOnly
  • paskal/add_common_processor
  • paskal/avatar_return_proper_content_type
  • paskal/bump_ci_go_version
  • paskal/bump_dep
  • paskal/bump_go_modules
  • paskal/bump_modules
  • paskal/double_close
  • paskal/email_module
  • paskal/facelift
  • paskal/fix_actions_test
  • paskal/fix_apple_key_panic
  • paskal/fix_custom_server
  • paskal/fix_error
  • paskal/fix_golangcilint
  • paskal/fix_lint_report
  • paskal/fix_send_jwt_header
  • paskal/google_auth_doc
  • paskal/improve_telegram
  • paskal/modules_bump
  • paskal/mongodb
  • paskal/moq
  • paskal/new_errors
  • paskal/plain_text
  • paskal/switch_to_v2
  • paskal/sync_v2
  • paskal/telegram_site_id
  • paskal/tg_username
  • paskal/token_generation_instructions
  • paskal/update-dependencies
  • paskal/update-modules
  • paskal/update_modules
  • paskal/update_pkcs8
  • paskal/v2
  • paskal/v2_golangcilint
  • paskal/v2_jwt5
  • ps/fix-example
  • rbac
  • readme-google-email
  • refs/tags/v0.10.0
  • refs/tags/v0.10.1
  • refs/tags/v0.10.2
  • refs/tags/v0.11.0
  • refs/tags/v0.12.0
  • refs/tags/v0.12.1
  • refs/tags/v1.13.0
  • refs/tags/v1.13.1
  • refs/tags/v1.14.0
  • refs/tags/v1.15.0
  • refs/tags/v1.16.0
  • refs/tags/v1.17.0
  • refs/tags/v1.18.0
  • refs/tags/v1.19.0
  • refs/tags/v1.19.1
  • refs/tags/v1.20.0
  • refs/tags/v1.21.0
  • refs/tags/v1.22.0
  • refs/tags/v1.22.1
  • refs/tags/v1.23.0
  • refs/tags/v1.24.0
  • refs/tags/v1.24.1
  • refs/tags/v1.24.2
  • refs/tags/v1.25.1
  • refs/tags/v1.25.2
  • refs/tags/v1.25.3
  • refs/tags/v1.25.4
  • refs/tags/v1.25.5
  • refs/tags/v1.25.6
  • refs/tags/v1.25.7
  • refs/tags/v1.26.0
  • refs/tags/v1.27.0
  • refs/tags/v1.27.1
  • refs/tags/v1.27.2
  • refs/tags/v1.28.0
  • refs/tags/v1.29.0
  • refs/tags/v1.5.1
  • refs/tags/v2.0.0
  • refs/tags/v2.1.0
  • refs/tags/v2.1.1
  • refs/tags/v2.1.2
  • refs/tags/v2.1.3
  • refs/tags/v2.1.4
  • refs/tags/v2.1.5
  • refs/tags/v2.1.6
  • refs/tags/v2.1.7
  • refs/tags/v2.2.0
  • refs/tags/v2.3.0
  • refs/tags/v2.3.1
  • refs/tags/v2.3.2
  • refs/tags/v2.4.0
  • refs/tags/v2.5.0
  • remove-bluemonday
  • reset-httponly-expiry
  • samesite
  • sanitize-verifyed
  • twitter-v2-oauth2
  • update-dependencies-2026-04
  • update-dependencies-dec2024
  • update-deps-and-golangci-v2
  • upgrade-repeater-v2
  • v0.8.0
  • v0.8.1
  • v0.8.2
  • v0.8.3
  • v0.9.0
  • verify-avatar
  • verify-require-provider

20 Nov 2026 11:06PM UTC coverage: 87.098% (+0.02%) from 87.082%
44834288160

Pull #332

github

paskal
Refuse a user mapped to an empty ID in the v1 OAuth2 callback

`Oauth2Handler.AuthHandler` already rejects empty user IDs in v2.
The v1 handler could still issue sessions for users mapped to an empty
ID, allowing different users to share an identity. Return HTTP 503 in
v1 as well to keep this behaviour consistent across both modules.

`TestOauth2LoginRejectsEmptyUserID` covers the refusal in both modules
with a provider that maps a user without an ID.
Pull Request #332: Add an OAuth 2.0 provider for X (Twitter) to v2

5 of 5 new or added lines in 1 file covered. (100.0%)

3389 of 3891 relevant lines covered (87.1%)

10.67 hits per line

Relevant lines Covered
Build:
Build:
3891 RELEVANT LINES 3389 COVERED LINES
10.67 HITS PER LINE
Source Files on master
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44834288160 twitter-v2-oauth2 Refuse a user mapped to an empty ID in the v1 OAuth2 callback `Oauth2Handler.AuthHandler` already rejects empty user IDs in v2. The v1 handler could still issue sessions for users mapped to an empty ID, allowing different users to share an identi... Pull #332 20 Nov 2026 11:08PM UTC paskal github
87.1
44834287982 twitter-v2-oauth2 Refuse a user mapped to an empty ID in the v1 OAuth2 callback `Oauth2Handler.AuthHandler` already rejects empty user IDs in v2. The v1 handler could still issue sessions for users mapped to an empty ID, allowing different users to share an identi... Pull #332 20 Nov 2026 11:08PM UTC paskal github
87.33
44832171464 twitter-v2-oauth2 Add an OAuth 2.0 provider for X (Twitter) to v2 Previously, the only way to sign in with X was the OAuth 1.0a `twitter` provider, which reads the user from API v1.1. X's documentation describes v1.1 as limited support and points new projects to v... Pull #332 20 Nov 2026 10:52PM UTC paskal github
87.08
44832171292 twitter-v2-oauth2 Add an OAuth 2.0 provider for X (Twitter) to v2 Previously, the only way to sign in with X was the OAuth 1.0a `twitter` provider, which reads the user from API v1.1. X's documentation describes v1.1 as limited support and points new projects to v... Pull #332 20 Nov 2026 10:52PM UTC paskal github
87.33
44434780739 master docs: scope the identicon 2x size advice to device pixel ratio 2 push 19 Nov 2026 01:11AM UTC umputun github
87.08
44434245080 refs/tags/v1.29.0 Make the generated identicon size configurable (#331) * Make the generated identicon size configurable Identicons for users without a picture are always drawn at 300x300. Sites that show avatars at 20-30px leave the browser to scale them down by... push 19 Nov 2026 01:07AM UTC web-flow github
87.08
44434237797 refs/tags/v2.5.0 Make the generated identicon size configurable (#331) * Make the generated identicon size configurable Identicons for users without a picture are always drawn at 300x300. Sites that show avatars at 20-30px leave the browser to scale them down by... push 19 Nov 2026 01:07AM UTC web-flow github
87.12
44434244773 refs/tags/v1.29.0 Make the generated identicon size configurable (#331) * Make the generated identicon size configurable Identicons for users without a picture are always drawn at 300x300. Sites that show avatars at 20-30px leave the browser to scale them down by... push 19 Nov 2026 01:07AM UTC web-flow github
87.12
44434237600 refs/tags/v2.5.0 Make the generated identicon size configurable (#331) * Make the generated identicon size configurable Identicons for users without a picture are always drawn at 300x300. Sites that show avatars at 20-30px leave the browser to scale them down by... push 19 Nov 2026 01:07AM UTC web-flow github
87.08
44433758546 master Make the generated identicon size configurable (#331) * Make the generated identicon size configurable Identicons for users without a picture are always drawn at 300x300. Sites that show avatars at 20-30px leave the browser to scale them down by... push 19 Nov 2026 01:03AM UTC web-flow github
87.12
See All Builds (1366)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc