Skip to content

Validate API TOKEN #1427

@lgvalle

Description

@lgvalle

Are you requesting automatic instrumentation for a framework or library? Please describe.
using library dd-sdk-android:1.17.2

Is your feature request related to a problem? Please describe.
Yes, if the datadog Android SDK is initialised using a wrong Token there's no way to know other than events not appearing on Datadog Dashboard, which is a very manual and prone to errors process.

Describe the solution you'd like
A function in the SDK to validate that the token passed to initialise it is correct. Something similar to the functionality of the existing API endpoint to validate API KEYs

Describe alternatives you've considered
I've tried two options with no luck

  1. Use the validate-api-key endpoint linked above passing an API TOKEN
  2. Use the Datadog JVM dependency for unit tests in our Android app, since it does have a validate functionality

In both cases, I received the same 403 error and I believe it's because API TOKENS cannot be used against the validate-api-key endpoint

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions