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

omniauth / omniauth_openid_connect / 9714733179
98%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2024 02:52PM UTC
Jobs 5
Files 5
Run time 1min
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

28 Jun 2024 02:52PM UTC coverage: 98.305%. Remained the same
9714733179

push

github

web-flow
fix: make require_state skip verification of state (#181)

In https://github.com/omniauth/omniauth_openid_connect/pull/127,
`require_state` was introduced because according to
https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.1,
`state` is recommended but not required:

```
state
    RECOMMENDED. Opaque value used to maintain state between the
    request and the callback. Typically, Cross-Site Request Forgery
    (CSRF, XSRF) mitigation is done by cryptographically binding the
    value of this parameter with a browser cookie.
```

During review, the `require_state` parameter was modified to verify
`state` as long as `stored_state` was present. However, `stored_state`
always holds at least a random value, so when `require_state` were
`false` and if an OpenID provider did not relay the `state` value,
authentication would halt with a "Invalid 'state' parameter" error.

This commit updates it so that if `require_state` is set to `false`,
the `state` parameter is never checked at all.

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

290 of 295 relevant lines covered (98.31%)

64.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-2.7 - 9714733179.1 28 Jun 2024 02:52PM UTC 5
98.31
GitHub Action Run
2 ruby-3.2 - 9714733179.2 28 Jun 2024 02:52PM UTC 5
98.31
GitHub Action Run
3 ruby-3.1 - 9714733179.3 28 Jun 2024 02:52PM UTC 5
98.31
GitHub Action Run
4 ruby-3.3 - 9714733179.4 28 Jun 2024 02:52PM UTC 5
98.31
GitHub Action Run
5 ruby-3.0 - 9714733179.5 28 Jun 2024 02:52PM UTC 5
98.31
GitHub Action Run
Source Files on build 9714733179
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8d1f8ede on github
  • Prev Build on master (#9700682698)
  • Next Build on master (#9778780334)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc