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

omniauth / omniauth_openid_connect / 9778780334
98%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2024 01:27PM 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

03 Jul 2024 01:27PM UTC coverage: 98.328% (+0.02%) from 98.305%
9778780334

push

github

stanhu
feat: Add `send_state` parameter to disable sending of state

This reverts #181 and adds a `send_state` parameter instead to address #174.

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.
```

In https://github.com/omniauth/omniauth_openid_connect/pull/181 we
attempted to make `require_state` skip the `state` verification if
it were `true`, but this was reverted for two reasons:

1. If identity providers make direct requests to the callback phase
with a valid token, no `state` is passed in the request. If
`require_state` were `true`, this change fails the request and breaks
existing flows.

2. If `state` isn't sent in the first place, it should not be
verified.

`send_state` will now disable the sending of a `state` in the
authorize phase.

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

294 of 299 relevant lines covered (98.33%)

65.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.1 - 9778780334.1 03 Jul 2024 01:27PM UTC 5
98.33
GitHub Action Run
2 ruby-3.0 - 9778780334.2 03 Jul 2024 01:27PM UTC 5
98.33
GitHub Action Run
3 ruby-3.2 - 9778780334.3 03 Jul 2024 01:27PM UTC 5
98.33
GitHub Action Run
4 ruby-3.3 - 9778780334.4 03 Jul 2024 01:27PM UTC 5
98.33
GitHub Action Run
5 ruby-2.7 - 9778780334.5 03 Jul 2024 01:27PM UTC 5
98.33
GitHub Action Run
Source Files on build 9778780334
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 02839d77 on github
  • Prev Build on master (#9714733179)
  • Next Build on master (#9800300171)
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