You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure::Core::Http::HTTPError: AuthenticationFailed (403): Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature
#232
Open
sandeep-svg opened this issue
Dec 23, 2023
· 0 comments
Azure::Core::Http::HTTPError: AuthenticationFailed (403): Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature
error
while am generating access token with managed identity enabled and my production server working perfectly but after sometime it's automatically throwing this error
after restarting the service again it's working like this it's happening repeatedly and
am using code as below
Access Token
Please refer to the below links for obtaining an access token:
require"azure/storage/common"access_token= <yourinitialaccesstoken>
# Creating an instance of `Azure::Storage::Common::Core::TokenCredential`token_credential=Azure::Storage::Common::Core::TokenCredential.newaccess_tokentoken_signer=Azure::Storage::Common::Core::Auth::TokenSigner.newtoken_credentialblob_token_client=Azure::Storage::Blob::BlobService.new(storage_account_name: <your_account_name>,signer: token_signer)# Refresh internal is 50 minutesrefresh_interval=50 * 60# The user-defined thread that renews the access tokencancelled=falserenew_token=Thread.newdoThread.stopwhile !cancelledsleep(refresh_interval)# Renew the access token here# Update the access token to the credentialtoken_credential.renew_token <new_access_token>
endendsleep0.1whilerenew_token.status != 'sleep'renew_token.run
The text was updated successfully, but these errors were encountered:
hi
am getting
Azure::Core::Http::HTTPError: AuthenticationFailed (403): Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature
error
while am generating access token with managed identity enabled and my production server working perfectly but after sometime it's automatically throwing this error
after restarting the service again it's working like this it's happening repeatedly and
am using code as below
Access Token
Please refer to the below links for obtaining an access token:
The text was updated successfully, but these errors were encountered: