Skip to content

Q: How can authentication headers be added with the slim flavour #894

@majst01

Description

@majst01

Hi,

thanks for the slim flavour of connect-go, really makes code more intuitive and readable.

We actually rely on Bearer authentication in our api and pass the bearer token at a central place into the http header with the help of a RoundTripper: https://github.com/metal-stack/api/blob/main/go/client/conn.go#L166

I want to convert this API to simple but i am unable to figure out how to pass the bearer token to the server side.
Obviously, as stated in the Changelog for the v1.19.0 release, adding the http header does not work anymore. But also adding it with a client side interceptor is not working, see: https://github.com/metal-stack/api/pull/50/files#diff-0a2bf469bafa680a742fd523314ae616a626bdbd5a2072d1ada86c044252c1bbR104

Is my hope to get simple working with bearer authentication hopeless, or can you give me some hints how to pass such values from the client to the server ?

Thanks in advance

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