FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. johndoexx
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    johndoexx

    @johndoexx

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

    johndoexx Unfollow Follow

    Best posts made by johndoexx

    • Logout doesn't work for me

      Hi
      I've implemented login, register and logout API with spring boot.
      I'm testing this with postman and flow is next:

      1. register user
      2. login with email and password -> get accessToken and refreshToken in response
      3. check can i access with accessToken to some page that need authorization
      4. after that works i go to logout api and send refreshToken as param, but after it return me status OK (200) then I try again with same accessToken access to API that need authorization and it return me data instead of error that I'm unauthorized

      What could be problem? @dan

      posted in Q&A
      J
      johndoexx

    Latest posts made by johndoexx

    • RE: Google identity provider

      @dan
      I saw this documentation.
      Well i have made custom login page, I don´t use fusionAuth login page. So i want to add option for google sign in on that custom login page, but i don´t know which API i sholud call in that case?

      posted in Q&A
      J
      johndoexx
    • Google identity provider

      Hi
      I want to use API for Google identity provider with SpringBoot, I'm using fusionAuth dependency but I have problem with creating request:

      Here is my code and now I don't know how to set all values that are needed for this request:

      IdentityProviderRequest request = new IdentityProviderRequest();
      request.identityProvider.applicationConfiguration.put(UUID.fromString(appId), null);
      	    
      fusionAuthClient.createIdentityProvider(null, request);
      

      How to add all these values that are shown in JSON example with this Java code:

      {
        "identityProvider" : {
          "applicationConfiguration" : {
            "1c212e59-0d0e-6b1a-ad48-f4f92793be32" : {
              "createRegistration" : true,
              "enabled" : true
            }
          },
          "buttonText" : "Login with Google",
          "client_id" : "254311943570-8e2i2hds0qdnee4124socceeh2q2mtjl.apps.googleusercontent.com",
          "client_secret" : "BRr7x7xz_-cXxIFznBDIdxF1",
          "debug": false,
          "enabled" : true,
          "scope" : "profile",
          "type" : "Google"
        }
      }
      

      Are there any example of Java code for this or if someone can write here it would be great

      Also I want to ask what you suggest to use for google signin/signup, I have custom sign in and sign up forms and for that purpose using fusioAuth Login API, and what is best way to integrate google provider so if user click on that button for sign in with google that it open google sign in form? Is it possible to go with these Google APIs from fusionAuth pr you will suggest me something else?
      @dan @robotdan

      posted in Q&A
      J
      johndoexx
    • Logout doesn't work for me

      Hi
      I've implemented login, register and logout API with spring boot.
      I'm testing this with postman and flow is next:

      1. register user
      2. login with email and password -> get accessToken and refreshToken in response
      3. check can i access with accessToken to some page that need authorization
      4. after that works i go to logout api and send refreshToken as param, but after it return me status OK (200) then I try again with same accessToken access to API that need authorization and it return me data instead of error that I'm unauthorized

      What could be problem? @dan

      posted in Q&A
      J
      johndoexx
    • Springboot OIDC authentication

      Hi @robotdan
      Is it possible to use oAuth 2.0 and OIDC as authentication in SpringBoot for REST APIs and make API for login so that on web we use custom login form instead of redirecting to some login form, from for example Okta? Or it is better in that case to use JWT?

      posted in Q&A
      J
      johndoexx