nutritious-nest-53624
12/07/2022, 12:51 PMAuthorization
header to the request.
For example:
CreateRecoveryLinkForIdentityExecute
(api_identity.go#L594)
Doesn't add auth header.
While the CreateIdentityExecute
(api_identity.go#L310)
Does it:
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
if apiKey, ok := auth["oryAccessToken"]; ok {
var key string
if apiKey.Prefix != "" {
key = apiKey.Prefix + " " + apiKey.Key
} else {
key = apiKey.Key
}
localVarHeaderParams["Authorization"] = key
}
}
}
This leads to 401 Unauthorized
errors when I try to use this SDK.
--
UPD
I made a fork of the repo and added authorization option to OpenAPI specification.
But when I try to re-generate code with openapi-generator there are a lot of changes.
Can you please help me with openapi-generator for your SDK?nutritious-nest-53624
12/07/2022, 12:59 PMbland-eye-99092
12/07/2022, 1:33 PMnutritious-nest-53624
12/07/2022, 1:34 PM