Skip to content

Fix Flipt Web provider Authentication #1208

@lucasbotingnon

Description

@lucasbotingnon

Fix Flipt Web provider Authentication

Reasoning

When trying to add authentication (clientToken or jwtToken) to the provider, the auth does not correctly reach the FliptEvaluationClient class.

Usage:

Image

Result:

Image


Proposed solution

To fix this, remove the underscores and use camel case, or eliminate the entire if statement from line 92 to line 104. This change will not affect functionality after switching to camelCase, as it will correctly format the auth. There is no need to adapt to the correct value that the FliptEvaluationClient.init() will receive.

Image

To confirm, the models used for the FliptEvaluationClient authentication object are:

Image

Proposed usage:

Image

Final result:

Using a clientToken
Image

Using a jwtToken
Image

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