Skip to content

Android app crashes while trying to authenticate with access token got from vimeo developer dashboard. Below is the stacktrace #526

@itsdeepuraju

Description

@itsdeepuraju
  • Stacktrace

    Caused by: java.lang.IllegalStateException: Authentication is not supported when using a fixed access token
    at com.vimeo.networking2.internal.NoOpAuthenticatorImpl.reject(NoOpAuthenticatorImpl.kt:85)
    at com.vimeo.networking2.internal.NoOpAuthenticatorImpl.authenticateWithClientCredentials(NoOpAuthenticatorImpl.kt:23)
    at com.radio.playbackspeeddemo.PlayApp.onCreate(PlayApp.kt:27)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6850)


  • Code causing issue:

val accessToken: String = "token here"
var vimeoApiConfiguration: VimeoApiConfiguration? = null
var vimeoApiClient: VimeoApiClient? = null

    vimeoApiConfiguration = VimeoApiConfiguration.Builder(accessToken)
        .build()
    val authenticator = Authenticator(vimeoApiConfiguration!!)

    vimeoApiClient = VimeoApiClient(vimeoApiConfiguration!!, authenticator)

    authenticator.authenticateWithClientCredentials(
        vimeoCallback(
            onSuccess = {
                Log.e("vimeo success", "vimeo success")
            },
            onError = {
                Log.e("vimeo failed", "vimeo failed")
            }
        )
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions