We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using RemoteSecrets, the user:pwd is not base64 encoded.
"Authentication": { "RemoteSecrets": { "BasicAuth": { "ClientSecret": "Decrypt:...", "HeaderKey": "Basic" } },
I tried with and without encoding for calls from LGS to MailSender. Only with base64 encoding would work.
The fix (to be done in Arc4u.Standard.OAuth2.AspNetCore/TokenProvider/RemoteClientSecretTokenprovider):
var clientSecret = settings.Values[TokenKeys.ClientSecret]; clientSecret = Convert.ToBase64String(Encoding.UTF8.GetBytes(clientSecret)); return Task.FromResult(new TokenInfo(settings.Values[TokenKeys.ClientSecretHeader], clientSecret, DateTime.UtcNow + TimeSpan.FromHours(1)));
The text was updated successfully, but these errors were encountered:
The behavior is as-designed: the TokenKeys.ClientSecret is supposed to contain the Base64 encoding already.
TokenKeys.ClientSecret
Sorry, something went wrong.
Implementation: Change the RemoteTokenProvider:
Will be released with the 8.2.0 version of the framework.
Hi @GGerrits .
Is it ok now?
So the expected sequence in Arc4u TokenProvider is
Try read from Base64 if failt to base 64 RemoteClientSecretTokenProvider
No branches or pull requests
When using RemoteSecrets, the user:pwd is not base64 encoded.
"Authentication": { "RemoteSecrets": { "BasicAuth": { "ClientSecret": "Decrypt:...", "HeaderKey": "Basic" } },
I tried with and without encoding for calls from LGS to MailSender. Only with base64 encoding would work.
The fix (to be done in Arc4u.Standard.OAuth2.AspNetCore/TokenProvider/RemoteClientSecretTokenprovider):
var clientSecret = settings.Values[TokenKeys.ClientSecret];
clientSecret = Convert.ToBase64String(Encoding.UTF8.GetBytes(clientSecret));
return Task.FromResult(new TokenInfo(settings.Values[TokenKeys.ClientSecretHeader], clientSecret, DateTime.UtcNow + TimeSpan.FromHours(1)));
The text was updated successfully, but these errors were encountered: