FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. shyamsundar.k
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    shyamsundar.k

    @shyamsundar.k

    2
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shyamsundar.k Unfollow Follow

    Best posts made by shyamsundar.k

    • How to generate and authorized java spring controller using JWT

      I am a starter plan user and want to implement JWT using client credentials flow in my Java Spring Boot Application. I generated the license in the fusion auth portal and set up the auth docker instance. I am getting the below error when generating the JWT token using client_id and secret.

      {
          "error": "not_licensed",
          "error_description": "You must enter a valid license Id in order to use the Entity Management features of FusionAuth, which include the Client Credentials Grant.",
          "error_reason": "not_licensed"
      }
      

      Please help me in forming the correct token generation call and then use the same token to authorize my controller.

      curl --location --request POST 'http://<base_url>:9011/oauth2/token?grant_type=client_credentials&client_id=<>&client_secret=<>&redirect_uri=<url>' \
      --data ''
      
      posted in General Discussion fusionauth jwt java client creds
      S
      shyamsundar.k
    • RE: How to generate and authorized java spring controller using JWT

      @dan Thanks. I am able to add the license now.

      posted in General Discussion
      S
      shyamsundar.k

    Latest posts made by shyamsundar.k

    • RE: How to generate and authorized java spring controller using JWT

      @dan I have a Java Rest API. How to authenticate the APIs using generated tokens? What are the steps?

      We need to pass the token in the API header as Authorization: Bearer<token> But what is the process so that I can validate the endpoint with the valid token if the token is invalid or does not have the required roles or scope then I should get 401 else I should be able to access the API successfully.

      posted in General Discussion
      S
      shyamsundar.k
    • RE: How to generate and authorized java spring controller using JWT

      @dan Thanks. I am able to add the license now.

      posted in General Discussion
      S
      shyamsundar.k
    • How to generate and authorized java spring controller using JWT

      I am a starter plan user and want to implement JWT using client credentials flow in my Java Spring Boot Application. I generated the license in the fusion auth portal and set up the auth docker instance. I am getting the below error when generating the JWT token using client_id and secret.

      {
          "error": "not_licensed",
          "error_description": "You must enter a valid license Id in order to use the Entity Management features of FusionAuth, which include the Client Credentials Grant.",
          "error_reason": "not_licensed"
      }
      

      Please help me in forming the correct token generation call and then use the same token to authorize my controller.

      curl --location --request POST 'http://<base_url>:9011/oauth2/token?grant_type=client_credentials&client_id=<>&client_secret=<>&redirect_uri=<url>' \
      --data ''
      
      posted in General Discussion fusionauth jwt java client creds
      S
      shyamsundar.k