Documentation ¶
Index ¶
Constants ¶
View Source
const ( MalformedResponseUser = "MalformedResponse" InternalServerErrorUser = "InternalServerError" InternalServerErrorMessage = "Shut the F up, Donny" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCredentialsServer ¶
type ClientCredentialsServer struct { *httptest.Server UAAClientID string UAAClientSecret string TokenToReturn string ValiditySecondsToReturn int TokensIssued int }
func NewClientCredentialsServer ¶
func NewClientCredentialsServer(uaaClientID, uaaClientSecret, tokenToReturn string) *ClientCredentialsServer
func NewClientCredentialsServerTLS ¶
func NewClientCredentialsServerTLS(uaaClientID, uaaClientSecret, tokenToReturn string) *ClientCredentialsServer
func (ClientCredentialsServer) ExpectedAuthorizationHeader ¶
func (s ClientCredentialsServer) ExpectedAuthorizationHeader() string
func (*ClientCredentialsServer) ServeHTTP ¶
func (s *ClientCredentialsServer) ServeHTTP(writer http.ResponseWriter, req *http.Request)
type UserCredentialsServer ¶
type UserCredentialsServer struct { *httptest.Server ClientID string ClientSecret string Username string Password string TokenToReturn string ValiditySecondsToReturn int TokensIssued int }
func NewUserCredentialsServer ¶
func NewUserCredentialsServer(clientID, clientSecret, username, password, tokenToReturn string) *UserCredentialsServer
func NewUserCredentialsServerTLS ¶
func NewUserCredentialsServerTLS(clientID, clientSecret, username, password, tokenToReturn string) *UserCredentialsServer
func (*UserCredentialsServer) ServeHTTP ¶
func (s *UserCredentialsServer) ServeHTTP(writer http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.