Closed TakumiHaruta closed 6 months ago
Hey @TakumiHaruta
Just wanted to check the state on this PR. Maybe you missed my review. We would appreciate your contribution 😃
@livio-a
Hi, sorry for the late reply. Currently I don't have time to spend on contributions...
Is it possible for you to fork from my PR and modify it as you want?
As long as we can put an access token from Authorization
header in go client to use Zitadel API, it's totally fine for us.
@livio-a Hi, sorry for the late reply. Currently I don't have time to spend on contributions... Is it possible for you to fork from my PR and modify it as you want? As long as we can put an access token from
Authorization
header in go client to use Zitadel API, it's totally fine for us.
no worries, just wanted to check. i will be on vacation but might check afterwards if i find a solution
This PR is more than a year old, and the go lib has been refactored since then. Due to this I will close this PR
Description
Close #186
NewAuthenticator
toNewJWTProfileAuthenticator
since this function is JWT profile specific.StaticTokenSource
type forcredentials.PerRPCCredentials
interfaceNewConnection
and switch authentication method byc.staticTokenSource
is empty or notNote
The function
NewConnection
itself is a bit tightly-coupled to JWT profile method only, so I think the condition to switch auth methods insideNewConnection
is not quite clean. Please let me know if you have an idea how to handle this in a better way