Documentation
¶
Overview ¶
Package sts provides emulation of AWS Security Token Service (STS).
Uses the AWS Query protocol: form-encoded POST body, XML responses. Supported operations:
- GetCallerIdentity
- GetSessionToken
- GetFederationToken
- AssumeRole
- AssumeRoleWithWebIdentity
Index ¶
- type Handler
- func (h *Handler) AssumeRole(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AssumeRoleWithWebIdentity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCallerIdentity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetFederationToken(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSessionToken(w http.ResponseWriter, r *http.Request)
- type Service
- func (s *Service) DispatchQuery(w http.ResponseWriter, r *http.Request)
- func (s *Service) InitBus(bus *events.Bus)
- func (s *Service) Name() string
- func (s *Service) Operations() []op.Operation
- func (s *Service) OwnsAction(action string) bool
- func (s *Service) RegisterRoutes(_ chi.Router)
- func (s *Service) SupportedProtocols() []codec.Codec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds STS handler dependencies.
func (*Handler) AssumeRole ¶
func (h *Handler) AssumeRole(w http.ResponseWriter, r *http.Request)
AssumeRole returns temporary credentials for the assumed role.
func (*Handler) AssumeRoleWithWebIdentity ¶
func (h *Handler) AssumeRoleWithWebIdentity(w http.ResponseWriter, r *http.Request)
AssumeRoleWithWebIdentity returns temporary credentials for a web identity.
func (*Handler) GetCallerIdentity ¶
func (h *Handler) GetCallerIdentity(w http.ResponseWriter, r *http.Request)
GetCallerIdentity returns the account/user identity for the request.
func (*Handler) GetFederationToken ¶
func (h *Handler) GetFederationToken(w http.ResponseWriter, r *http.Request)
GetFederationToken returns temporary credentials for a federated user.
func (*Handler) GetSessionToken ¶
func (h *Handler) GetSessionToken(w http.ResponseWriter, r *http.Request)
GetSessionToken returns temporary credentials.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements router.Service and router.QueryDispatcher for STS.
func (*Service) DispatchQuery ¶
func (s *Service) DispatchQuery(w http.ResponseWriter, r *http.Request)
DispatchQuery satisfies router.QueryDispatcher. STS uses the AWS Query protocol: form-encoded POST body with Action field, XML responses.
func (*Service) Operations ¶
Operations implements router.ProtocolService.
func (*Service) OwnsAction ¶
OwnsAction satisfies router.QueryActionOwner.
func (*Service) RegisterRoutes ¶
RegisterRoutes satisfies router.Service. STS has no path-routed endpoints.
func (*Service) SupportedProtocols ¶
SupportedProtocols implements router.ProtocolService.