Hello everyone, i want to know how to imbed access token to webview to authen through apisix and keycloak. Please help me if you know.
Regardless of the method you have tried:
- Cookie
- Header Authorization
- Param Encode in URL.
This is my setting in apisix:
{
"uri": "/service",
"name": "Service",
"plugins": {
"authz-keycloak": {
"_meta": {
"disable": false
},
"access_token_expires_in": 300,
"access_token_expires_leeway": 0,
"cache_ttl_seconds": 60,
"client_id": "object_removal",
"client_secret": "ruo5IxxF0v",
"grant_type": "urn:ietf:params:oauth:grant-type:uma-ticket",
"http_method_as_scope": false,
"keepalive": true,
"keepalive_pool": 5,
"keepalive_timeout": 60000,
"lazy_load_paths": false,
"permissions": [
"Removal"
],
"policy_enforcement_mode": "ENFORCING",
"refresh_token_expires_in": 3600,
"refresh_token_expires_leeway": 0,
"ssl_verify": true,
"timeout": 3000,
"token_endpoint": "http://host.docker.internal:8080/realms/apisix_test_realm/protocol/openid-connect/token"
},
"cors": {
"allow_headers": "Authorization, Content-Type",
"allow_methods": "GET, POST, OPTIONS",
"allow_origins": "*"
}
},
"upstream": {
"nodes": [
{
"host": "host.docker.internal",
"port": 8501,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"status": 1
}