Commit 5b108ef3 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

imp token not impl in aws

commit 09727180 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Jan 27 2021 10:34:21 GMT-0600 (Central Standard Time) 

    imp token not impl
parent e3f70ad5
...@@ -39,6 +39,11 @@ export class ImpTokenHandler { ...@@ -39,6 +39,11 @@ export class ImpTokenHandler {
'The impersonation token endpoints are not currently supported in azure.')); 'The impersonation token endpoints are not currently supported in azure.'));
} }
if (Config.CLOUDPROVIDER === 'aws') {
throw (Error.make(Error.Status.NOT_IMPLEMENTED,
'The impersonation token endpoints are not currently supported in aws.'));
}
// subproject endpoints are not available with impersonation token // subproject endpoints are not available with impersonation token
if (op !== ImpTokenOP.Refresh) { if (op !== ImpTokenOP.Refresh) {
if (Auth.isImpersonationToken(req.headers.authorization)) { if (Auth.isImpersonationToken(req.headers.authorization)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment