Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/feature: prompt=none, response_mode=fragment #385

Merged
merged 1 commit into from
May 3, 2023

Conversation

muir
Copy link
Contributor

@muir muir commented Apr 27, 2023

Resolves #384

This changes example op so that an auth request with prompt=none will trigger a login-required error and adds a test that uses prompt=none and respone_mode=fragment.

feature: rp now support setting the response mode.

fix: op.AuthRequestError now honors response mode. It previously didn't because oidc.AuthRequest didn't have a GetResponseMode() method.

tests: additional coverage; exampleop.SetupServer now takes extra server options.

@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #385 (4d2873d) into main (7997994) will increase coverage by 0.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
+ Coverage   51.39%   52.00%   +0.61%     
==========================================
  Files          74       74              
  Lines        5676     5680       +4     
==========================================
+ Hits         2917     2954      +37     
+ Misses       2495     2462      -33     
  Partials      264      264              
Impacted Files Coverage Δ
pkg/client/rp/relying_party.go 50.42% <100.00%> (+0.27%) ⬆️
pkg/oidc/authorization.go 100.00% <100.00%> (+100.00%) ⬆️

... and 4 files with indirect coverage changes

@muhlemmer muhlemmer merged commit 157bc6c into zitadel:main May 3, 2023
@github-actions
Copy link

github-actions bot commented May 3, 2023

🎉 This PR is included in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provide prompt to storage layer and/or return error for prompt=none
2 participants