Skip to content

ApiClient.set_access_token(token_obj) is not useful #201

Description

@schluta

ApiClient.set_access_token(token_obj) does not add "Bearer" before the access token.

    def set_access_token(self, token_obj):
        """

        :param token_obj: 
        :return: 
        """
        self.default_headers['Authorization'] = token_obj.access_token

In addition, I think this would be much more useful to pass the token itself and modify the header. Instead it seems to be looking for a response object which then accesses the access_token parameter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions