Giter Site home page Giter Site logo

Comments (4)

g4laura avatar g4laura commented on July 28, 2024 1

Oh thank you! It was something if front of the request, there is a WAF that blocked access, it was allowing requests yesterday but it started blocking. Thank you for responding, apologies, the error was on my end.

from keycloak-magic-link.

xgp avatar xgp commented on July 28, 2024

Thanks for the report @g4laura. Can you please provide the complete request you are making, and how it is configured? Also, do you see any errors in the logs?

from keycloak-magic-link.

g4laura avatar g4laura commented on July 28, 2024

Thank you for the quick reply.

My request is a POST request in the form of
{{keycloakUrl}}/realms/{{realmName}}/magic-link

{
    "username": "{{username}}",
    "client_id": "{{clientId}}",
    "redirect_uri":"{{redirectUri}}"
}

where keycloak url is the url of my deployed keycloak hostname which runs on AWS ECS with Fargate, Aurora Servers mySQL compatible database, and an application load balancer. And a bearer token with a client access token (with the appropriate service account permissions)

It works when I run it locally and it worked remotely up until last night, when the endpoint started returning 403 errors. It seems that request is forbidden before it can reach the endpoint, because it isn't returning 401 as it does if a POST request is made with an invalid access token.

from keycloak-magic-link.

xgp avatar xgp commented on July 28, 2024

Since it is working locally, and not on your server, can you check that your service account on your remote still has manage-users? The only case in which this method will return a 403 is if that permission is not present for the user in the token.
https://github.com/p2-inc/keycloak-magic-link/blob/main/src/main/java/io/phasetwo/keycloak/magic/resources/MagicLinkResource.java#L30

Also, if you can post the full request and response (e.g. using something like a curl -vv) that might help determine if it is the keycloak extension, or something in front of it that is blocking the request.

from keycloak-magic-link.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.