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
    4 Posts 2 Posters 2.7k Views
    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 - Identity Without Constraints
        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 - Identity Without Constraints
            https://fusionauth.io

            1 Reply Last reply
            Reply Quote 0
            • danD dan moved this topic from Q&A on
            • danD dan moved this topic from Frequently Asked Questions (FAQ) on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post