getUserProfile() throws error

I’m trying to use SessionClient to get information on the user. However, when I call it, I get this error:

Invalid operation. Please check your configuration. OAuth2 authorization servers does notsupport /userinfo endpoint

private fun getOktaUserInfo() {
    with (sessionClient) {
        getUserProfile(object: RequestCallback<UserInfo, AuthorizationException> {
            override fun onSuccess(result: UserInfo) {
                Timber.d("User Information Success")

            override fun onError(error: String?, exception: AuthorizationException?) {
                Timber.e(error, "User Information Failure")

Hi @reastland

What type of OIDC application are you using? Are you retrieving both an ID token and an access token, as an access token is required to access /userinfo endpoint?

Hi @dragos
This is an Android application. And yes, I am retrieving an access token.

Hi @reastland

Can you please a support case with us through an email to in order to further review the logs and narrow down the cause of the error? In the email, please specify your Okta tenant and client ID of the OIDC application in order to narrow down the requests.

I discovered that the information that I needed was embedded in the access and id tokens once they were base64 decoded.

But I still don’t understand why the call to getUserProfile throws this error. I’m no longer concerned about it, but I guess the question remains unanswered.

Hello, this looks like it’s stil an issue on Android, I’ve bene just testing out some working code used in an iOs application in Android, and that same code fails when getting the profile