You need to enable CORS in Keycloak as it seems. A quick google search came up 
with https://github.com/keycloak/keycloak/tree/master/examples/cors but there 
might be other more suitable resources.

 

 

 

From: <[email protected]> on behalf of Néstor Almeida 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Monday, October 2, 2017 at 02:28
To: Swagger <[email protected]>
Subject: Re: Keycloak (OpenID-Connect OAuth) Swagger Integration

 

My securityDefinitions.json is:

{
    "alertas_oauth": {
        "type": "oauth2",
        "authorizationUrl": 
"http://-----:18080/auth/realms/gcid/protocol/openid-connect/auth";,
        "tokenUrl": 
"http://------:18080/auth/realms/gcid/protocol/openid-connect/token";,
        "flow": "password",
        "scopes": {
            "urn:gcid.org:scopes:alertas:listar": "Permite la lectura de 
alertas",
            "urn:gcid.org:scopes:alertas:crear": "Permite la creación de 
alertas",
            "urn:gcid.org:scopes:alertas:editar": "Permite la modificiación de 
alertas",
            "urn:gcid.org:scopes:alertas:eliminar": "Permite la eliminación de 
alertas"
        }
    }
}

 

----- is a replacement for the IP address

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to