FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Categories
    3. Q&A
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • danD

      Is there a way to get all the members of a particular group?

      groups search • • dan
      2
      0
      Votes
      2
      Posts
      11.3k
      Views

      danD

      You need to use the user search API with an elastic search query string.

      Here's a curl example:

      API_KEY=.... GROUP_ID=f4a64b10-1cf6-4289-84c0-c3035f3b78bc curl -H "Authorization: $API_KEY" 'http://localhost:9011/api/user/search/?queryString=memberships.groupId:'$GROUP_ID

      If you are using the database search engine, you cannot find all the members of a group.

    • H

      Installation - Error Connecting to Azure Database for PostgreSQL server

      • • humaira.tum11
      5
      0
      Votes
      5
      Posts
      9.5k
      Views

      danD

      Regarding all the settings, yes, you'll have to set those up again. There's currently no way to export configuration of a FusionAuth setup.

      What you can do is write a Kickstart file which lets you set up a new FusionAuth instance to be configured just how you want it. You basically build a JSON file which calls the APIs to configure FusionAuth: https://fusionauth.io/docs/v1/tech/installation-guide/kickstart

    • robotdanR

      How do I handle users without passwords during import

      • • robotdan
      6
      0
      Votes
      6
      Posts
      17.8k
      Views

      robotdanR

      @ashok you got it!

    • danD

      Is it possible to ship the event log entries in FusionAuth Cloud elsewhere?

      log files datadog • • dan
      2
      0
      Votes
      2
      Posts
      1.8k
      Views

      danD

      FusionAuth does not have any plugins that directly write to 3rd party services like DataDog.

      But with the API https://fusionauth.io/docs/v1/tech/apis/event-logs you can write an ingester.

    • D

      The fusion auth client for node has a method for token introspection?

      • • denisvasilenkoise
      2
      0
      Votes
      2
      Posts
      588
      Views

      danD

      Hiya!

      You have a couple of options.

      You should be able to use the validateJWT method on the fusionauth node client. That calls this API: https://fusionauth.io/docs/v1/tech/apis/jwt#validate-a-jwt

      You can call into /oauth2/introspect, but you'll have to construct that URL manually, as it isn't currently supported by the client libraries.

      Finally, you can also use a jwt package (like this one) to verify the JWT is still valid without communicating with FusionAuth.

      Hope this helps.

    • danD

      I'm having an issue with Elastic Search queries in FusionAuth.

      elasticsearch elastic search • • dan
      2
      0
      Votes
      2
      Posts
      6.0k
      Views

      danD

      It depends on the issue, but there are two things you can do. Note that FusionAuth typically sends the query you post to the /api/user/search endpoint with the query parameter straight through to Elasticsearch

      First, ensure you are running elasticsearch and not the database search engine.

      Then, for some queries you can see the generate ElasticSearch query strings by clicking on the 'advanced' option in the user search area of the admin UI. This can be helpful.

      Finally, try running the query directly against elasticsearch and seeing if it works. Here are examples which will pull back all the data in your elasticsearch cluster (beware!).

      curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d' { "query": { "match_all": {} } }'

      or, if you have the query stored in query.json

      curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d@query.json
    • danD

      What’s your recommendation on handling roles across multiple applications within a Tenant?

      groups roles tenant • • dan
      2
      0
      Votes
      2
      Posts
      3.6k
      Views

      danD

      Groups would be a good solution. The group just allows you to assign the roles to the group instead of the user - and then the group membership allows you to inherit those roles (assuming the user is registered for the application whose roles belong to the group).

    • danD

      Other than the releasenotes page, is there some endpoint where i can get the latest release of FusionAuth?

      releases • • dan
      2
      0
      Votes
      2
      Posts
      637
      Views

      danD

      I think you could look at the latest tag on dockerhub? https://hub.docker.com/r/fusionauth/fusionauth-app/tags

      I'm not sure if there's an automated way to do this, but this might be useful: https://docs.docker.com/registry/spec/api/#pulling-an-image

    • danD

      Solved What version of UUID is used for auto-generation of user ids?

      uuid user ids • • dan
      2
      0
      Votes
      2
      Posts
      710
      Views

      danD

      UUID v4

      More details about datatypes in general: https://fusionauth.io/docs/v1/tech/reference/data-types

    • J

      SAML error 500 (version 1.7.4)

      • • jmarin
      9
      0
      Votes
      9
      Posts
      5.7k
      Views

      danD

      @jmarin Interesting. What instructions are you working off of from Rosetta Stone?

    • A

      Taking a user directly to the registration page

      • • ashok
      9
      1
      Votes
      9
      Posts
      9.0k
      Views

      danD

      Great. It's typically used for CSRF protection, but can be used for other purposes. Here's a pretty good article covering this.

    • R

      FusionAuth IDP: Okta

      • • rohit12sh
      2
      0
      Votes
      2
      Posts
      427
      Views

      danD

      I'm not aware of anyone running this configuration, but Okta is a valid OIDC identity provider, and FusionAuth supports OIDC compliant IdPs, so this should work.

      Weirdly, I didn't find Okta documentation on setting up their service as an IdP, but I did find this Auth0 doc. I'd have to test, but it looks like you'll need to set up a FusionAuth lambda to reconcile the user data.

      Hope this helps.

    • M

      Devices by user

      • • megeshg
      2
      0
      Votes
      2
      Posts
      479
      Views

      danD

      Hiya,

      I'm glad you were able to make the device grant work.

      I looked in the issues list and found this one: https://github.com/FusionAuth/fusionauth-issues/issues/248 which seems similar but maybe not exactly what you are looking for. If it is, please vote for it.

      If it isn't, I'd encourage you to file an issue explaining exactly what you'd like, so that others can give feedback. We can't commit to timelines or implementations (unless you engage us for support or professional services) but definitely look at the number of votes for features when planning our roadmap.

      At this time I'm not aware of any plans to store/display how many devices are linked to a user, which means that building it out in your codebase is probably the best path forward.

      You could possibly leverage the user.data field and update it right after the grant is complete. This would give you the ability to search that in Elasticsearch.

      Hope this helps.

    • danD

      Can we do a user search without a tenant id?

      tenant user search • • dan
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      danD

      If you don't care about the possibility of duplicate users or you can handle them in your business logic (because tenants allow multiple users to have the same username or email address), you can use a globally scoped API key and just call the search API with the email address.

      For example, here a script I ran after creating two 'test@example.com' users in different tenants in one FusionAuth instance: curl -H "Authorization: $API_KEY" 'http://localhost:9011/api/user/search?queryString=test%40example.com'

      The API_KEY variable was a globally scoped API key (not scoped to one tenant).

      This returned this json (note, I'm running the database search engine, but the results should be similar if you are running elasticsearch):

      {"total":2,"users":[{"active":true,"email":"test@example.com","id":"0e3f0f4d-6795-4200-b044-9fea2437f0d2","insertInstant":1591914961640,"lastLoginInstant":1591914961678,"passwordChangeRequired":false,"passwordLastUpdateInstant":1591914961675,"tenantId":"1de156c2-2daa-a285-0c59-b52f9106d4e4","twoFactorDelivery":"None","twoFactorEnabled":false,"usernameStatus":"ACTIVE","verified":true},{"active":true,"email":"test@example.com","id":"6d145368-431b-4df1-aba4-5741bd7a9280","insertInstant":1592244970665,"lastLoginInstant":1592244970695,"passwordChangeRequired":false,"passwordLastUpdateInstant":1592244970690,"tenantId":"7b231917-733e-4347-b9e2-11915de60fc8","twoFactorDelivery":"None","twoFactorEnabled":false,"usernameStatus":"ACTIVE","verified":true}]}
    • danD

      Can I create an API key via the FusionAuth API?

      api api keys • • dan
      2
      0
      Votes
      2
      Posts
      2.1k
      Views

      danD

      There is no way to create API keys from the API.

      You can bootstrap the system with an API key using Kickstart. Kickstart would allow you to create one or more API keys, which can optionally scoped to a tenant. More on Kickstart: https://fusionauth.io/docs/v1/tech/installation-guide/kickstart

      However, this doesn't solve the issue of dynamically creating a tenant scoped API key. If that's a use case for which you need support, please file a github issue: https://github.com/fusionauth/fusionauth-issues with more detail.

    • danD

      Password policies for password based logins?

      passwords policies • • dan
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      danD

      You set these at the tenant level.

      Home / Settings /Tenants / Edit in the admin UI.

      You can also use the API or a kickstart file to set these.

    • D

      Exact example of using "GET /api/user/search?queryString={queryString}" or search_users_by_query(self, request)

      • • dhait
      2
      0
      Votes
      2
      Posts
      938
      Views

      danD

      An easy way to see the elastic search string for some queries is to go to the user search in the admin screen, click 'advanced' and then click 'show elastic query'.

      Here's an example elastic search post: https://fusionauth.io/community/forum/topic/110/how-can-i-get-all-users-for-an-application-using-the-api

      I know this isn't exactly what you asked for, but hope it helps some.

    • K

      Can't connect to Postgres db in Azure

      • • keith
      2
      0
      Votes
      2
      Posts
      561
      Views

      danD

      Hi @keith ,

      There are some improvements FA can make to the way it works with hosted databases. Here's the github issue: https://github.com/FusionAuth/fusionauth-issues/issues/95

      Can you try using the advanced installation: https://fusionauth.io/docs/v1/tech/installation-guide/fusionauth-app#advanced-installation and see if that works for you?

    • danD

      is there an easy way to use all the defaults when creating a Tenant via the API?

      tenant api • • dan
      2
      0
      Votes
      2
      Posts
      974
      Views

      danD

      Yes, you want to use sourceTenantId when creating the tenant

      You can keep a tenant around or use a particular one as the template, and then always create a new tenant using the sourceTenanId. This does not do a merge however, so if you want specific values, you’d want to do something like:

      Call create w/ sourceTenantId Consume the response and then modify what you want Call update or patch with the new values
    • J

      Captch solution with FusionAuth

      • • j.frost
      3
      0
      Votes
      3
      Posts
      500
      Views

      J

      Hi Dan,
      Thx for the response - correct, re the login form, and adding a captcha solution.