Lesson 35 - Get Compute Auth Token Working

This commit is contained in:
Norman Lansing
2026-02-28 12:32:28 -05:00
parent 1d477ee42a
commit 4fde462bce
7743 changed files with 1397833 additions and 18 deletions

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <smithy/identity/identity/AwsBearerTokenIdentityBase.h>
namespace smithy {
class AwsBearerTokenIdentity : public AwsBearerTokenIdentityBase {
public:
virtual const Aws::String &token() const override;
virtual Aws::Crt::Optional<AwsIdentity::DateTime>
expiration() const override;
Aws::String &token() { return m_token; }
Aws::Crt::Optional<AwsIdentity::DateTime> &expiration()
{
return m_expiration;
}
protected:
Aws::String m_token;
Aws::Crt::Optional<AwsIdentity::DateTime> m_expiration;
};
}
#include <smithy/identity/identity/impl/AwsBearerTokenIdentityImpl.h>