Documentation ¶
Index ¶
Constants ¶
View Source
const ( AWSSecuritykeyEndPoint = "https://sts.amazonaws.com/" AWSSecuritykeyInputDurationSeconds = 900 // 900초 기본설정, accesstoken 과 별도 라이프사이클을 가짐. AWSSecuritykeyInputAction = "AssumeRoleWithWebIdentity" AWSSecuritykeyInputVersion = "2011-06-15" AWSSecuritykeyInputRoleSessionName = "web-identity-federation" )
Variables ¶
View Source
var ( AWSSecuritykeyInputParams = &AWSSecuritykeyInput{ DurationSeconds: AWSSecuritykeyInputDurationSeconds, Action: AWSSecuritykeyInputAction, Version: AWSSecuritykeyInputVersion, RoleSessionName: AWSSecuritykeyInputRoleSessionName, } )
Functions ¶
func StructToMap ¶
Types ¶
type AWS ¶
type AWS struct{}
func (AWS) GetSecurityKey ¶
func (AWS) GetSecurityKey(c buffalo.Context) (*securitykeyprovider.CspCredential, error)
type AWSSecuritykeyInput ¶
type AWSSecuritykeyInput struct { DurationSeconds int `json:"durationSeconds"` Action string `json:"action"` Version string `json:"version"` RoleSessionName string `json:"roleSessionName"` RoleArn string `json:"roleArn"` WebIdentityToken string `json:"webIdentityToken"` }
AWS sts 요청 파람
type AssumeRoleWithWebIdentityResponse ¶
type AssumeRoleWithWebIdentityResponse struct { AssumeRoleWithWebIdentityResult AssumeRoleWithWebIdentityResult `xml:"AssumeRoleWithWebIdentityResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
AWS sts 응답
type AssumeRoleWithWebIdentityResult ¶
type AssumeRoleWithWebIdentityResult struct { Audience string `xml:"Audience"` AssumedRoleUser AssumedRoleUser `xml:"AssumedRoleUser"` Provider string `xml:"Provider"` Credentials Credentials `xml:"Credentials"` SubjectFromWebIdentity string `xml:"SubjectFromWebIdentityToken"` }
type AssumedRoleUser ¶
type Credentials ¶
type ResponseMetadata ¶
type ResponseMetadata struct {
RequestId string `xml:"RequestId"`
}
Click to show internal directories.
Click to hide internal directories.