Hello ! How can I use an OAuth2 stream if the prov...
# talk-kratos
d
Hello ! How can I use an OAuth2 stream if the provider doesn't follow RFC standards? For my example, Epic Games doesn't accept url encoded Authorization Header, so implementation via Ory Kratos/OAuth2/HTTP package/Method SetBasicAuth is not possible. Any ideas? @magnificent-energy-493 or @high-optician-2097 have you seen this before?
m
Hello @delightful-noon-48365 Is this the correct documentation https://dev.epicgames.com/docs/web-api-ref/connect-web-api ?
d
Yes this the correct documentation and they don't speak to url encode the contatenatation of
client_id:client_secret
like Go HTTP package needed : https://cs.opensource.google/go/go/+/refs/tags/go1.21.3:src/net/http/request.go;l=987
This line from OAuth2 for Go is the problem, because it encodes the client's identifier and secret https://github.com/golang/oauth2/blob/master/internal/token.go#L199 I will try a PR to add a bool to allow non url encode data