• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
914
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 21 Apr 2022, 10:06

    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?

    D 1 Reply Last reply 24 Apr 2022, 21:32 Reply Quote 0
    • D
      dan @amith.kumar.shetty
      last edited by 24 Apr 2022, 21:32

      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 30 Apr 2022, 17:36 Reply Quote 0
      • A
        amith.kumar.shetty @dan
        last edited by 30 Apr 2022, 17:36

        @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

        D 1 Reply Last reply 2 May 2022, 15:36 Reply Quote 1
        • D
          dan @amith.kumar.shetty
          last edited by 2 May 2022, 15:36

          @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
          3 out of 4
          • First post
            3/4
            Last post