-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to increase oauth2_cache_shm_check_value #19
Comments
yes, what does your config look like right now? |
assuming you're using the default cache settings: OpenIDCCache shm max_val_size=32768; though I believe tokens or sessions should not contain that much data |
We are seeing similar error even with above setting.. Below is our config. OpenIDCProvider file /etc/nginx/openidc.json; error--- |
you'll need to put the OpenIDCCache entry before the other directives |
Thanks we are not seeing cache error any more. but when we specify OpenIDCConfig redirect_uri=https://xxxxx/ui/callback;, it is looping back to login page. Noticed below in debug logs *1 # oauth2_openidc_is_request_to_redirect_uri: comparing: "http://xxxx/ui/callback"="https://xxxx/ui/callback" is there a parameter to set redirect_uri scheme to https? |
the redirect setting seems to be set to https just fine; the incoming request seems on plain http, at least according to the logs: make sure you're using the latest ngx_openidc_module and liboauth2 >= 1.4.5.4 code since before 3.3.1 it was hardcoded to plain http (as a debug leftover...), see: https://github.com/OpenIDC/ngx_openidc_module/releases/tag/v3.3.1 |
Hi, I am seeing below error. is there any parameter that can be set to increase or encrypt?
2023/04/19 16:28:40 [error] 625446#0: *29 # oauth2_cache_shm_check_value: could not store value since value size is too large (23710 > 8192), "GET /ui/callback?code=b3d7dfe405fd4dfe84237c002c836efd&state=c7cdaee6fe4c7530 HTTP/1.1" 2023/04/19 16:28:40 [error] 625446#0: *29 # oauth2_cache_set: leave: could NOT store: 985489e42b462634, client: 64.102.186.187, server: , request: "GET /ui/callback?code=b3d7dfe405fd4dfe84237c002c836efd&state=c7cdaee6fe4c7530 HTTP/1.1"
2023/04/19 16:28:40 [error] 625446#0: *29 # oauth2_session_save_cache: could not store session in cache, client:
The text was updated successfully, but these errors were encountered: