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

    Ubanle to use database with @in the username

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    4
    909
    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.
    • A
      amith.kumar.shetty
      last edited by

      I am connecting to postgres hosted on azure . Azure postgres requires the username to be specfied in username@hostname format. If I set the username like this, I get an error while starting the app.

      com.inversoft.maintenance.db.JDBCMaintenanceModeDatabaseService - Exception caught executing [CREATE ROLE xxxxx@hostame WITH LOGIN PASSWORD xxxxxxxx]
      org.postgresql.util.PSQLException: ERROR: syntax error at or near "@"
        Position: 23
      

      Any method to fix this?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @amith.kumar.shetty
        last edited by

        Hi @amith-kumar-shetty !

        This is a known limitation of FusionAuth. More details here: https://github.com/FusionAuth/fusionauth-issues/issues/1036

        Please upvote that issue if you'd like to see this fixed.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        A 1 Reply Last reply Reply Quote 0
        • A
          amith.kumar.shetty @dan
          last edited by

          @dan Thank you. I had to manually run the CREATE ROLE “postgresql@hostxxxx” LOGIN PASSWORD 'yyyyyyyyyy' on my database instance before starting the app. Then everything works ok. Note the double quotes around the username

          danD 1 Reply Last reply Reply Quote 1
          • danD
            dan @amith.kumar.shetty
            last edited by

            @amith-kumar-shetty Excellent, glad you got it working!

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

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