Okta.Users.clear_user_sessions uses the wrong endpoint
Closed this issue · 0 comments
ZBuggy commented
The endpoint used for clear_user_sessions
is Tesla.delete(client, @users_url <> "/#{user_id}", query: [oauthTokens: oauth_tokens])
https://developer.okta.com/docs/reference/api/users/#clear-user-sessions
According to the Okta Api Documentation it would need to be
Tesla.delete(client, @users_url <> "/#{user_id}" <> "/sessions", query: [oauthTokens: oauth_tokens])
The current action is instead Delete User, which is a very different operation
https://developer.okta.com/docs/reference/api/users/#delete-user