FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    User not registered still logged in

    Scheduled Pinned Locked Moved
    General Discussion
    login
    2
    4
    2.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      llorach.pablo
      last edited by

      i have a structure of applications and tenants based on registrations, so users must be registered on the application, if he is not registered he will be logged in, but won't be granted access to the Application, but i dont want that, i want that fusionauth reject the user in the login screen like when the password is wrong?
      Is that possible?

      J 1 Reply Last reply Reply Quote 1
      • J
        johnathon @llorach.pablo
        last edited by

        Hi @llorach-pablo,

        Sorry to hear you are running into this issue.

        What version of FusionAuth you are running and how are you running it? (Docker, AWS, local machine, etc)

        It sounds like you would like to have your application configured to require registration to be redirected to the authorized redirect configured for the Authorization Code Grant, as described here, is that correct? https://fusionauth.io/community/forum/topic/1171/where-to-find-the-option-require-registration/2

        You mentioned that '...if he is not registered he will be logged in..' You would like users who are not registered to be logged in, is that correct? It is possible to allow unregistered users to log in to your application, as well as block unregistered users from being logged in. Which behavior are you looking for?

        Is this the open Github issue you were referencing?: https://github.com/FusionAuth/fusionauth-issues/issues/439

        I am running the latest version of FusionAut 1.42.1. I created an application using the Authorization Code Grant and created a user without being registered for my application. I then toggled the Require Registration toggle under Application > OAuth > Require Registration. When I attempted to log in to the application, I was given the error "Your account has not been registered for this application.".

        What happens when you try to log into your application with a user that is not registered? Is this the same behavior you are looking for? Are you using the hosted login pages or the Login API?

        Hopefully, this helps us get you closer to the functionality you need for your application.

        Thank you,

        Johnathon

        L 1 Reply Last reply Reply Quote 0
        • L
          llorach.pablo @johnathon
          last edited by

          @johnathon

          i do not want to see that image, I want the user to crash on the login screen if he is not registered to the application and receive a generic error (if I can write the error message is fine for me, but if it says the password is wrong is ok for me).

          38b7c671-0648-47d5-b238-cacf0eb5ae4d-Screenshot from 2023-02-03 10-52-11.png file:///home/garsiv/Pictures/Screenshots/Screenshot%20from%202023-02-03%2010-52-11.png

          L 1 Reply Last reply Reply Quote 0
          • L
            llorach.pablo @llorach.pablo
            last edited by

            @johnathon like you see on the capture i am using the login screen.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post