I would like to ask if there is any keycloak configuration that we should similar to this one below
keycloak:
auth-server-url: http://localhost:8180/auth
realm: CollageERP
resource: collage-erp-web
public-client: true
use-resource-role-mappings: true
cors: true
cors-max-age: 0
principal-attribute: preferred_username
cors-allowed-methods: POST, PUT, DELETE, GET
cors-allowed-headers: X-Requested-With, Content-Type, Authorization, Origin, Accept, Access-Control-Request-Method, Access-Control-Request-Headers
I know that we have a CORS configuration such as below.
quarkus:
http:
port: 9090
cors:
~: true
origins: "*" #${ORIGINS:http://localhost:8081}
headers: "*"
access-control-allow-credentials: true
methods: "*"
exposed-headers: "*"
access-control-max-age: 24H
But still would like to know if the above configuration dedicated for keycloak is valid.
Reason asking is whenever I test locally It is ok, but when I run the quarkus application via docker container I keep on getting 401.