Closed luoluoyuyu closed 11 months ago
can you confirm if there are no other routes that might be interfering with the route with OIDC plugin?
Related: https://github.com/apache/apisix/issues/9131
But for that doc, I didn't run into state does not match state restored from session
last I ran it. Is this behaviour reproducible if you start with a clean APISIX instance?
hi @shreemaan-abhishek Only one route
{
"list": [
{
"value": {
"update_time": 1702177105,
"id": "1",
"status": 1,
"priority": 0,
"create_time": 1701853548,
"plugins": {
"openid-connect": {
"scope": "openid profile",
"client_id": "",
"session": {
"secret": ""
},
"set_id_token_header": true,
"client_secret": "",
"set_refresh_token_header": false,
"introspection_endpoint_auth_method": "client_secret_basic",
"ssl_verify": false,
"token_endpoint_auth_method": "client_secret_basic",
"bearer_only": false,
"logout_path": "/anything/logout",
"redirect_uri": "http://localhost:9080/anything/callback",
"set_access_token_header": true,
"client_jwt_assertion_expires_in": 60,
"access_token_in_authorization_header": false,
"use_pkce": false,
"iat_slack": 120,
"accept_none_alg": false,
"accept_unsupported_alg": true,
"use_nonce": false,
"jwk_expires_in": 86400,
"jwt_verification_cache_ignore": false,
"access_token_expires_leeway": 0,
"introspection_interval": 0,
"set_userinfo_header": true,
"realm": "apisix",
"refresh_session_interval": 900,
"renew_access_token_on_expiry": true,
"unauth_action": "auth",
"revoke_tokens_on_logout": false,
"force_reauthorize": false,
"timeout": 3,
"discovery": "https://dev-4z571phginb1bucm.us.auth0.com/.well-known/openid-configuration"
}
},
"uri": "/anything/*",
"upstream": {
"scheme": "http",
"pass_host": "pass",
"hash_on": "vars",
"nodes": {
"httpbin.org:80": 1
},
"type": "roundrobin"
}
},
"key": "/apisix/routes/1",
"modifiedIndex": 287,
"createdIndex": 219
}
],
"total": 1
}
i can reproduce it on my apisix
Ok noted. I'll find time to take a look soon.
Ok I can reproduce the no session state found
as well. It didn't error out in review when we rolled out this doc so this is new. I'll investigate.
Please note that the originally reported ... does not match state restored from session
is a different error. I have seen it before with other OP but not sure how to recreate for Auth0.
@Vacant2333 try substituting 127.0.0.1
with localhost
(so http://localhost:9080/anything/test
)
@luoluoyuyu the doc has been updated. Please see if your issue still persists.
@kayx23 Thanks, problem solved!
Description
configure
The configuration is as follows
Process description
The steps of the operation follow the documentation: https://docs.api7.ai/apisix/how-to-guide/authentication/set-up-sso-with-auth0
First time login
Redirects to http://localhost:9080/anything/callback after first successful login Returns 500,
Second login
To access '127.0.0.1:9080/anything/test' again, I need to log in once more, and unfortunately, I don't get redirected to /anything/callback after a successful login.
log:
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):