<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y000060PmR5SAKOkta Classic EngineSingle Sign-OnAnswered2024-04-15T13:22:29.000Z2019-02-28T04:03:04.000Z2019-05-13T19:53:22.000Z
Unable to clear the user session programatically by using API cal

Login with user who is not assigned to application and try to login that application then it show error message as - User is not assigned to Client application but when user try to login with another user but user can't able to clear the 1st user session programatically by using API Call - Clear User Sessions

Currently we are using Authorize api call to get authorize code and then we are getting access_token and getting logged in user info by access token... in above case as user is not assigned to client application so tht's why it return error code and error description, it doesn't return any user related info and i go thr artical about clear session for user but for that api call i need userid so can anyone help me out to get user info so using okta user id i can clear user session


  • Mihai Burcea - Okta (Okta, Inc.)

    Hello,

     

    Please open a case with our Support and please send us the script/calls you are using so we can have a look and see what can we do to solve this issue.

    Also, while opening the case with Support, please have a look on our https://devforum.okta.com/ to see if anybody else had this issue and if not, please post the same there.

    We will not be able to offer a solution without seeing the whole flow/script you are using.

     

    Thank you!

    Expand Post
    Selected as Best
  • Mihai Burcea - Okta (Okta, Inc.)

    Hello,

     

    Please open a case with our Support and please send us the script/calls you are using so we can have a look and see what can we do to solve this issue.

    Also, while opening the case with Support, please have a look on our https://devforum.okta.com/ to see if anybody else had this issue and if not, please post the same there.

    We will not be able to offer a solution without seeing the whole flow/script you are using.

     

    Thank you!

    Expand Post
    Selected as Best
  • ldsm8 (ldsm8)

    Hello,

     

    Below I have mentioned error details,

     

    I am using authorize api call - GET ${baseUrl}/v1/authorize to authenticate user and getting authorize code. 

     

    And then we tried to login with user who is not assigned to application then it returns error message from authorize api call - GET ${baseUrl}/v1/authorize with error message as - User is not assigned to Client application. Then if user try to use another credential to login but that time user can't able to login it returns same error code as above, so now we are trying to clear the user session programatically by using API Call - Clear User Sessions ( /api/v1/users/{{userID}}/sessions) but for this call we need to pass {{userID}} and i am not able to get userinfo as authorize call didn't return any authorize code.

     

    So can anyone help me out to get user info so using okta user id i can clear user session

    Expand Post
This question is closed.
Loading
Unable to clear the user session programatically by using API cal