Skip to content

Conversation

@pboling
Copy link
Member

@pboling pboling commented Sep 14, 2025

End-to-end example using oauth2 gem against a local mock-oauth2-server.

Prerequisites:

  1. Start the mock server (self-signed HTTPS on 8080):
    docker compose -f docker-compose-ssl.yml up -d --wait
  2. Run this script:
    ruby examples/e2e.rb
  3. Stop the server when you're done:
    docker compose -f docker-compose-ssl.yml down

The output should be something like this:

ruby examples/e2e.rb
Access token (truncated): eyJraWQiOiJkZWZhdWx0...
userinfo status: 200 
userinfo body: {"sub" => "demo-sub", "aud" => ["demo-aud"], "nbf" => 1757816758000, "iss" => "http://localhost:8080/default", "exp" => 1757820358000, "iat" => 1757816758000, "jti" => "d63b97a7-ebe5-4dea-93e6-d542caba6104"}
E2E complete

Notes:

  • The mock server uses a self-signed certificate. SSL verification is disabled in this example.
  • Tested down to Ruby 2.4 (avoid newer syntax).

@coveralls
Copy link

coveralls commented Sep 14, 2025

Pull Request Test Coverage Report for Build 17705218235

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 17703785258: 0.0%
Covered Lines: 520
Relevant Lines: 520

💛 - Coveralls

@pboling pboling force-pushed the feat/e2e-example branch 2 times, most recently from 2699a63 to 269801f Compare September 14, 2025 02:28
@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Health
oauth2 100% 100%
Summary 100% (520 / 520) 100% (176 / 176)

Minimum allowed line rate is 100%

@pboling pboling merged commit 89f0443 into main Sep 14, 2025
37 checks passed
@pboling pboling deleted the feat/e2e-example branch September 14, 2025 03:04
@codecov
Copy link

codecov bot commented Sep 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (0c36d66) to head (ce89ee7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #680   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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