FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. jwt
    Log in to post
    • All categories
    • danD

      Anonymous tokens

      Q&A
      • anonymous jwt • • dan
      2
      0
      Votes
      2
      Posts
      2.4k
      Views

      danD

      Not currently.

      You could create a single user called anonymous and auth that user to get a generic token.

      There is an open issue for a more elegant solution; feel free to upvote it: https://github.com/FusionAuth/fusionauth-issues/issues/525

    • danD

      When migrating, what happens to our existing tokens

      Q&A
      • migration jwt • • dan
      2
      0
      Votes
      2
      Posts
      3.9k
      Views

      danD

      This depends on how the JWT was signs, but is probably fine, especially if JWTs are only used in APIs. It's very typical to want to ensure that existing JWTs are accepted as long as they haven’t expired. You'll also need to ensure that new JWTs from FusionAuth are also accepted.

      So this is really a question of making sure the JWT producers and consumers have the correct signing secrets.

      You can solve this by sharing the secrets between the old system and FusionAuth (check out the Keymaster to import existing keys or making sure your clients can look up the keys from a JWKS endpoint from both the old and the new system.

    • danD

      Token difference when account hasn't been verified

      Q&A
      • email verification jwt • • dan
      2
      0
      Votes
      2
      Posts
      3.1k
      Views

      danD

      The JWT (id_token or access_token) will contain the email_verified claim with a value of true or false, so if you wish to limit privilege based upon this state, that would be a good way to do it.

    • danD

      Can we use FA as a SSO provider for another platform?

      Q&A
      • sso jwt • • dan
      4
      0
      Votes
      4
      Posts
      13.0k
      Views

      danD

      You’re correct. That is not a standard redirect URL. You could easily build some glue code to to look like an OpenID Connect compliant SP and then handle the redirect yourself. I am not super familiar with some of the OpenID Connect server options, but something like Hydra may be useful here. Perhaps some others from the community here can help with off the shelf options if you don’t want to code it yourself.

      But coding it yourself may be the easiest, if you coded it in Node or something like that, it would be super simple, you’d have FusionAuth redirect to your node app and then you’d redirect to the video platform.

    • danD

      I want to pass the locale and timezone info to apps via a JWT

      Q&A
      • jwt timezone locale • • dan
      3
      0
      Votes
      3
      Posts
      5.7k
      Views

      danD

      There's additional localization and internationalization doc that was written recently here: https://fusionauth.io/docs/v1/tech/core-concepts/localization-and-internationalization/

    • danD

      Solved Can I automatically rotate my JWT signing keys?

      Q&A
      • jwt keys rotation • • dan
      3
      0
      Votes
      3
      Posts
      1.8k
      Views

      danD

      The team wrote a tutorial outlining how to rotate keys, including signing keys: https://fusionauth.io/docs/v1/tech/tutorials/key-rotation/

    • S

      Unsolved Is it sefe to get access to GET /api/jwt/refresh?userId={userId} method?

      Q&A
      • security jwt • • szwejkc
      2
      0
      Votes
      2
      Posts
      3.4k
      Views

      danD

      Hiya,

      When you say

      Everybody can see authorization key.

      Who do you mean? Do you mean anyone with access to the FusionAuth admin console? Or some other set of users?

    • danD

      Solved How does one add custom claims to the JWT issued by the OAuth flow?

      Q&A
      • claims jwt oauth • • dan
      2
      0
      Votes
      2
      Posts
      12.4k
      Views

      danD

      In general you are going to want to use a Lambda to populate additional claims: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate

      This issue has some notes about Hasura in particular: https://github.com/FusionAuth/fusionauth-issues/issues/61

    • danD

      Can we set multiple "aud" claims in FusionAuth?

      Q&A
      • lambda claims jwt faq • • dan
      2
      0
      Votes
      2
      Posts
      4.6k
      Views

      danD

      We do not support this directly in FusionAuth, but you could use a Lambda to set the aud claim to whatever you want.

      The specification allows for a string value, or an array of string values, so you could create a Lambda with something like: jwt.aud = [ 'foo', 'bar' ];

      More about Lambdas and JWTs here: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate

    • danD

      Solved How can I get a new refresh token from FusionAuth?

      Q&A
      • faq refresh token jwt login • • dan
      5
      0
      Votes
      5
      Posts
      14.0k
      Views

      danD

      @bboure You may be interested in this new feature from the 1.17.0 release, which allows for a sliding window of refresh tokens:

      Sliding Window Refresh Token Expiration. By default the expiration of a refresh token is calculated from the time it was originally issued. Beginning in this release you may optionally configure the refresh token expiration to be based upon a sliding window. A sliding window expiration means that the expiration is calculated from the last time the refresh token was used. This expiration policy means that if you are using refresh tokens to maintain a user session, the session can be maintained as long as the user remains active. This expiration policy must be enabled at the tenant level, and may optionally be overridden by the Application JWT configuration.