Documentation
¶
Index ¶
Constants ¶
View Source
const ( AnnotationSubscriptionContextSecret = "sme.sap.com/subscription-context-secret" AnnotationSaaSAdditionalOutput = "sme.sap.com/saas-additional-output" AnnotationSubscriptionDomain = "sme.sap.com/subscription-domain" )
View Source
const ( LabelBTPApplicationIdentifierHash = "sme.sap.com/btp-app-identifier-hash" LabelTenantId = "sme.sap.com/btp-tenant-id" )
View Source
const ( ResourceCreated = "resource created successfully" ResourceFound = "resource exists" ResourceDeleted = "resource deleted successfully" ResourceNotFound = "resource not found" )
View Source
const ( CallbackSucceeded = "SUCCEEDED" CallbackFailed = "FAILED" ProvisioningSucceededMessage = "Provisioning successful" ProvisioningFailedMessage = "Provisioning failed" DeprovisioningSucceededMessage = "Deprovisioning successful" DeprovisioningFailedMessage = "Deprovisioning failed" )
View Source
const ( Step = "step" TenantProvisioning = "Tenant Provisioning" TenantDeprovisioning = "Tenant Deprovisioning" )
View Source
const AuthorizationCheckFailed = "authorization check failed"
View Source
const BasicPrefix = "Basic "
View Source
const BearerPrefix = "Bearer "
View Source
const ErrorOccurred = "Error occurred "
View Source
const InvalidRequestMethod = "invalid request method"
Variables ¶
This section is empty.
Functions ¶
func VerifyXSUAAJWTToken ¶
func VerifyXSUAAJWTToken(ctx context.Context, tokenString string, config *XSUAAConfig, client *http.Client) error
token validation for XSUAA token implemented by following the guidelines provided -> CPSecurity/Knowledge-Base/03_ApplicationSecurity/TokenValidation/
Types ¶
type CallbackResponse ¶
type OAuthResponse ¶
type OAuthResponse struct {
AccessToken string `json:"access_token"`
}
type OpenIDConfig ¶
type SubscriptionHandler ¶
type SubscriptionHandler struct { Clientset versioned.Interface KubeClienset kubernetes.Interface // contains filtered or unexported fields }
func NewSubscriptionHandler ¶
func NewSubscriptionHandler(clientset versioned.Interface, kubeClienset kubernetes.Interface) *SubscriptionHandler
func (*SubscriptionHandler) CreateTenant ¶
func (s *SubscriptionHandler) CreateTenant(req *http.Request) *Result
func (*SubscriptionHandler) DeleteTenant ¶
func (s *SubscriptionHandler) DeleteTenant(req *http.Request) *Result
func (*SubscriptionHandler) HandleRequest ¶
func (s *SubscriptionHandler) HandleRequest(w http.ResponseWriter, req *http.Request)
type XSUAAConfig ¶
type XSUAAJWTClaims ¶
Click to show internal directories.
Click to hide internal directories.