FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. muravyov.alexey
    3. Topics
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 14
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by muravyov.alexey

    • M

      Status Code 400 when try to login by Twitch OIDC

      Comments & Feedback
      • • • muravyov.alexey
      3
      0
      Votes
      3
      Posts
      1.9k
      Views

      joshuaJ

      @muravyov-alexey

      Glad you figured this out. This might be in the domain of Twitch as they are the ones returning that error code to FusionAuth.

      On paid editions, we do have a guide that you can follow for the Twitch provider (sounds as though you may be aware)

      https://fusionauth.io/docs/v1/tech/identity-providers/twitch/#undefined

      Thanks,
      Josh

    • M

      patchUser respond 404 from webhook on user.registration.create event

      Comments & Feedback
      • • • muravyov.alexey
      7
      0
      Votes
      7
      Posts
      7.2k
      Views

      M

      @joshua

      FA version 1.31.0
      typescript-client-1.32.1

    • M

      How to get populated user.data after user registraion.

      Comments & Feedback
      • populate jwt lambda webhook registration • • muravyov.alexey
      7
      0
      Votes
      7
      Posts
      8.3k
      Views

      danD

      @muravyov-alexey Thank you!

    • M

      error 401 depends on API Key settings

      Comments & Feedback
      • api authorization settings • • muravyov.alexey
      3
      0
      Votes
      3
      Posts
      4.5k
      Views

      M

      I tried with all HTTP methods enabled for /api/user only, and it update user successfully.
      But if I tried only with GET and PATCH methods enabled for /api/user , I get 'statusCode=401'.
      Here is code

      import { FusionAuthClient, UserRequest } from '@fusionauth/typescript-client' ... export class FusionAuthService { private fusionAuthClient: FusionAuthClient; constructor(private context: Context) { this.fusionAuthClient = new FusionAuthClient(context.config.fusionAuth.apiKey, context.config.fusionAuth.apiUrl); } ... public async updateUser(userId: string, userRequest: UserRequest ) { return this.fusionAuthClient.updateUser(userId, userRequest) .then(clientResponse => { logger.info("User:", JSON.stringify(clientResponse.response.user, null, 2)); }).catch(logger.error); }

      here is invocation of updateUser method that happens on 'user.registration.create' event

      if (user) { const patchBody = { user: { email: event.user.email, data: { userId: user.id } }, } await this.fusionAuthService.updateUser(event.user.id, patchBody); }

      Now I understand that I use updateUser method and I don't know what kind of HTTP request it used.
      I have found patchUser and with it get success.

      Thanks for your help.

    • M

      Events not comings to webhook

      Comments & Feedback
      • • • muravyov.alexey
      5
      0
      Votes
      5
      Posts
      1.8k
      Views

      joshuaJ

      @muravyov-alexey

      Not sure what it is need for, but if it is correct then better put some hint about this in GUI near the option.

      Good suggestion! I have logged an issue for consideration.

      https://github.com/FusionAuth/fusionauth-issues/issues/1542

      Hmm. In my view, this makes sense. Here are two cases to consider

      jwt.refresh-token.revoke - maybe there are some application-level events that need to take place based on this event. In the right context, this might be functionally equivalent to "logging someone out." If someone was logged out (forcibly) from your application, then you might want to take action based on that (remove them from a list, or make another programmatic check, etc).

      user.action - maybe this user was actioned for any number of application-specific reasons that you might want to respond to.

      Everything else is scoped to a tenant, from my understanding.

      I hope this helps. Thanks for the feedback.

      Thanks,
      Josh