istio: istio.io/istio/security/pkg/stsservice/server Index | Files

package server

import "istio.io/istio/security/pkg/stsservice/server"

Index

Package Files

server.go

Constants

const (
    // TokenPath is url path for handling STS requests.
    TokenPath = "/token"
    // StsStatusPath is the path for dumping STS status.
    StsStatusPath = "/stsStatus"
    // URLEncodedForm is the encoding type specified in a STS request.
    URLEncodedForm = "application/x-www-form-urlencoded"
    // TokenExchangeGrantType is the required value for "grant_type" parameter in a STS request.
    TokenExchangeGrantType = "urn:ietf:params:oauth:grant-type:token-exchange"
    // SubjectTokenType is the required token type in a STS request.
    SubjectTokenType = "urn:ietf:params:oauth:token-type:jwt"
)

type Config Uses

type Config struct {
    LocalHostAddr string
    LocalPort     int
}

Config for the STS server.

type Server Uses

type Server struct {
    // contains filtered or unexported fields
}

Server watches HTTP requests for security token service (STS), and returns token in response.

func NewServer Uses

func NewServer(config Config, tokenManager stsservice.TokenManager) (*Server, error)

NewServer creates a new STS server.

func (*Server) DumpStsStatus Uses

func (s *Server) DumpStsStatus(w http.ResponseWriter, req *http.Request)

DumpStsStatus handles requests for dumping STS status, including STS requests being served, tokens being fetched.

func (*Server) ServeStsRequests Uses

func (s *Server) ServeStsRequests(w http.ResponseWriter, req *http.Request)

ServeStsRequests handles STS requests and sends exchanged token in responses.

func (*Server) Stop Uses

func (s *Server) Stop()

Stop closes the server

Package server imports 8 packages (graph) and is imported by 1 packages. Updated 2020-02-18. Refresh now. Tools for package owners.