Documentation ¶
Overview ¶
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationAclRequest(server string, organization OrganizationParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest(server string, organization OrganizationParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsRequest(server string) (*http.Request, error)
- func NewGetOauth2V2AuthorizationRequest(server string) (*http.Request, error)
- func NewGetOauth2V2JwksRequest(server string) (*http.Request, error)
- func NewGetOauth2V2UserinfoRequest(server string) (*http.Request, error)
- func NewGetOidcCallbackRequest(server string) (*http.Request, error)
- func NewGetWellKnownOpenidConfigurationRequest(server string) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody(server string, organization OrganizationParameter, contentType string, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsRequest(server string, body PostApiV1OrganizationsJSONRequestBody) (*http.Request, error)
- func NewPostApiV1OrganizationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauth2V2LoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauth2V2LoginRequestWithFormdataBody(server string, body PostOauth2V2LoginFormdataRequestBody) (*http.Request, error)
- func NewPostOauth2V2TokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauth2V2TokenRequestWithFormdataBody(server string, body PostOauth2V2TokenFormdataRequestBody) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter, ...) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody(server string, organization OrganizationParameter, groupid GroupidParameter, ...) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationRequest(server string, organization OrganizationParameter, ...) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationRequestWithBody(server string, organization OrganizationParameter, contentType string, ...) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Acl
- type AclPermissions
- type AclResponse
- type AclScope
- type AclScopes
- type AuthMethod
- type BadRequestResponse
- type ChiServerOptions
- type Claim
- type Client
- func (c *Client) DeleteApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1Organizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationAcl(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationOauth2Providers(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) GetOauth2V2Authorization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOauth2V2Jwks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOauth2V2Userinfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOidcCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetWellKnownOpenidConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiV1Organizations(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationGroupsWithBody(ctx context.Context, organization OrganizationParameter, contentType string, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostOauth2V2LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostOauth2V2LoginWithFormdataBody(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) PostOauth2V2TokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostOauth2V2TokenWithFormdataBody(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganization(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupidWithBody(ctx context.Context, organization OrganizationParameter, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganizationWithBody(ctx context.Context, organization OrganizationParameter, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationAclWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*GetApiV1OrganizationsOrganizationAclResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsResponse, error)
- func (c *ClientWithResponses) GetOauth2V2AuthorizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2AuthorizationResponse, error)
- func (c *ClientWithResponses) GetOauth2V2JwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2JwksResponse, error)
- func (c *ClientWithResponses) GetOauth2V2UserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2UserinfoResponse, error)
- func (c *ClientWithResponses) GetOidcCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcCallbackResponse, error)
- func (c *ClientWithResponses) GetWellKnownOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOpenidConfigurationResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, ...) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiV1OrganizationsResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsWithResponse(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, ...) (*PostApiV1OrganizationsResponse, error)
- func (c *ClientWithResponses) PostOauth2V2LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOauth2V2LoginResponse, error)
- func (c *ClientWithResponses) PostOauth2V2LoginWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, ...) (*PostOauth2V2LoginResponse, error)
- func (c *ClientWithResponses) PostOauth2V2TokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOauth2V2TokenResponse, error)
- func (c *ClientWithResponses) PostOauth2V2TokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, ...) (*PostOauth2V2TokenResponse, error)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, ...) (*PutApiV1OrganizationsOrganizationResponse, error)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithResponse(ctx context.Context, organization OrganizationParameter, ...) (*PutApiV1OrganizationsOrganizationResponse, error)
- type ClientWithResponsesInterface
- type CodeChallengeMethod
- type ConflictResponse
- type CreateGroupRequest
- type CreateOrganizationRequest
- type DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse
- type ForbiddenResponse
- type GetApiV1OrganizationsOrganizationAclResponse
- type GetApiV1OrganizationsOrganizationGroupsGroupidResponse
- type GetApiV1OrganizationsOrganizationGroupsResponse
- type GetApiV1OrganizationsOrganizationOauth2ProvidersResponse
- type GetApiV1OrganizationsResponse
- type GetOauth2V2AuthorizationResponse
- type GetOauth2V2JwksResponse
- type GetOauth2V2UserinfoResponse
- type GetOidcCallbackResponse
- type GetWellKnownOpenidConfigurationResponse
- type GrantType
- type Group
- type GroupResponse
- type GroupidParameter
- type Groups
- type GroupsResponse
- type HttpRequestDoer
- type InternalServerErrorResponse
- type InvalidParamFormatError
- type JsonWebKey
- type JsonWebKeySet
- type JwksResponse
- type LoginRequestOptions
- type MiddlewareFunc
- type NotFoundResponse
- type Oauth2Error
- type Oauth2ErrorError
- type Oauth2Provider
- type Oauth2Providers
- type Oauth2ProvidersResponse
- type OpenidConfiguration
- type OpenidConfigurationResponse
- type Organization
- type OrganizationParameter
- type Organizations
- type OrganizationsResponse
- type PostApiV1OrganizationsJSONRequestBody
- type PostApiV1OrganizationsOrganizationGroupsJSONRequestBody
- type PostApiV1OrganizationsOrganizationGroupsResponse
- type PostApiV1OrganizationsResponse
- type PostOauth2V2LoginFormdataRequestBody
- type PostOauth2V2LoginResponse
- type PostOauth2V2TokenFormdataRequestBody
- type PostOauth2V2TokenResponse
- type PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody
- type PutApiV1OrganizationsOrganizationGroupsGroupidResponse
- type PutApiV1OrganizationsOrganizationJSONRequestBody
- type PutApiV1OrganizationsOrganizationResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ResponseType
- type RoleList
- type Scope
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1Organizations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOidcCallback(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1Organizations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
- type SigningAlgorithm
- type Token
- type TokenRequestOptions
- func (t TokenRequestOptions) AsTokenRequestOptions0() (TokenRequestOptions0, error)
- func (t TokenRequestOptions) AsTokenRequestOptions1() (TokenRequestOptions1, error)
- func (t *TokenRequestOptions) FromTokenRequestOptions0(v TokenRequestOptions0) error
- func (t *TokenRequestOptions) FromTokenRequestOptions1(v TokenRequestOptions1) error
- func (t TokenRequestOptions) MarshalJSON() ([]byte, error)
- func (t *TokenRequestOptions) MergeTokenRequestOptions0(v TokenRequestOptions0) error
- func (t *TokenRequestOptions) MergeTokenRequestOptions1(v TokenRequestOptions1) error
- func (t *TokenRequestOptions) UnmarshalJSON(b []byte) error
- type TokenRequestOptions0
- type TokenRequestOptions1
- type TokenResponse
- type TooManyValuesForParamError
- type UnauthorizedResponse
- type UnescapedCookieParamError
- type UnmarshallingParamError
- type UpdateGroupRequest
- type UpdateOrganizationRequest
- type UserList
- type UserinfoResponse
Constants ¶
const (
Oauth2AuthenticationScopes = "oauth2Authentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest ¶ added in v0.1.3
func NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)
NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest generates requests for DeleteApiV1OrganizationsOrganizationGroupsGroupid
func NewGetApiV1OrganizationsOrganizationAclRequest ¶ added in v0.1.23
func NewGetApiV1OrganizationsOrganizationAclRequest(server string, organization OrganizationParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationAclRequest generates requests for GetApiV1OrganizationsOrganizationAcl
func NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest ¶ added in v0.1.20
func NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest generates requests for GetApiV1OrganizationsOrganizationGroupsGroupid
func NewGetApiV1OrganizationsOrganizationGroupsRequest ¶ added in v0.1.3
func NewGetApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationGroupsRequest generates requests for GetApiV1OrganizationsOrganizationGroups
func NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest ¶ added in v0.1.18
func NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest(server string, organization OrganizationParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest generates requests for GetApiV1OrganizationsOrganizationOauth2Providers
func NewGetApiV1OrganizationsRequest ¶ added in v0.1.3
NewGetApiV1OrganizationsRequest generates requests for GetApiV1Organizations
func NewGetOauth2V2AuthorizationRequest ¶
NewGetOauth2V2AuthorizationRequest generates requests for GetOauth2V2Authorization
func NewGetOauth2V2JwksRequest ¶
NewGetOauth2V2JwksRequest generates requests for GetOauth2V2Jwks
func NewGetOauth2V2UserinfoRequest ¶ added in v0.1.14
NewGetOauth2V2UserinfoRequest generates requests for GetOauth2V2Userinfo
func NewGetOidcCallbackRequest ¶
NewGetOidcCallbackRequest generates requests for GetOidcCallback
func NewGetWellKnownOpenidConfigurationRequest ¶
NewGetWellKnownOpenidConfigurationRequest generates requests for GetWellKnownOpenidConfiguration
func NewPostApiV1OrganizationsOrganizationGroupsRequest ¶ added in v0.1.3
func NewPostApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationGroupsRequest calls the generic PostApiV1OrganizationsOrganizationGroups builder with application/json body
func NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody ¶ added in v0.1.3
func NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody(server string, organization OrganizationParameter, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody generates requests for PostApiV1OrganizationsOrganizationGroups with any type of body
func NewPostApiV1OrganizationsRequest ¶ added in v0.1.13
func NewPostApiV1OrganizationsRequest(server string, body PostApiV1OrganizationsJSONRequestBody) (*http.Request, error)
NewPostApiV1OrganizationsRequest calls the generic PostApiV1Organizations builder with application/json body
func NewPostApiV1OrganizationsRequestWithBody ¶ added in v0.1.13
func NewPostApiV1OrganizationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1OrganizationsRequestWithBody generates requests for PostApiV1Organizations with any type of body
func NewPostOauth2V2LoginRequestWithBody ¶
func NewPostOauth2V2LoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostOauth2V2LoginRequestWithBody generates requests for PostOauth2V2Login with any type of body
func NewPostOauth2V2LoginRequestWithFormdataBody ¶
func NewPostOauth2V2LoginRequestWithFormdataBody(server string, body PostOauth2V2LoginFormdataRequestBody) (*http.Request, error)
NewPostOauth2V2LoginRequestWithFormdataBody calls the generic PostOauth2V2Login builder with application/x-www-form-urlencoded body
func NewPostOauth2V2TokenRequestWithBody ¶
func NewPostOauth2V2TokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostOauth2V2TokenRequestWithBody generates requests for PostOauth2V2Token with any type of body
func NewPostOauth2V2TokenRequestWithFormdataBody ¶
func NewPostOauth2V2TokenRequestWithFormdataBody(server string, body PostOauth2V2TokenFormdataRequestBody) (*http.Request, error)
NewPostOauth2V2TokenRequestWithFormdataBody calls the generic PostOauth2V2Token builder with application/x-www-form-urlencoded body
func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest ¶ added in v0.1.3
func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest calls the generic PutApiV1OrganizationsOrganizationGroupsGroupid builder with application/json body
func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody ¶ added in v0.1.3
func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody(server string, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody generates requests for PutApiV1OrganizationsOrganizationGroupsGroupid with any type of body
func NewPutApiV1OrganizationsOrganizationRequest ¶ added in v0.1.3
func NewPutApiV1OrganizationsOrganizationRequest(server string, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationRequest calls the generic PutApiV1OrganizationsOrganization builder with application/json body
func NewPutApiV1OrganizationsOrganizationRequestWithBody ¶ added in v0.1.3
func NewPutApiV1OrganizationsOrganizationRequestWithBody(server string, organization OrganizationParameter, contentType string, body io.Reader) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationRequestWithBody generates requests for PutApiV1OrganizationsOrganization with any type of body
Types ¶
type Acl ¶ added in v0.1.23
type Acl struct { // IsSuperAdmin Indicates the user can do all the things. IsSuperAdmin *bool `json:"isSuperAdmin,omitempty"` // Scopes A list of access control scopes. Scopes *AclScopes `json:"scopes,omitempty"` }
Acl A list of access control scopes and permissions.
type AclPermissions ¶ added in v0.1.23
type AclPermissions = []string
AclPermissions A list of access control permissions.
type AclResponse ¶ added in v0.1.23
type AclResponse = Acl
AclResponse A list of access control scopes and permissions.
type AclScope ¶ added in v0.1.23
type AclScope struct { // Name The scope name Name string `json:"name"` // Permissions A list of access control permissions. Permissions AclPermissions `json:"permissions"` }
AclScope An access control scope.
type AclScopes ¶ added in v0.1.23
type AclScopes = []AclScope
AclScopes A list of access control scopes.
type AuthMethod ¶
type AuthMethod string
AuthMethod Supported authentication methods.
const ( ClientSecretBasic AuthMethod = "client_secret_basic" ClientSecretPost AuthMethod = "client_secret_post" )
Defines values for AuthMethod.
type BadRequestResponse ¶
type BadRequestResponse = Oauth2Error
BadRequestResponse Generic error message.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Claim ¶
type Claim string
Claim Supported claims.
const ( ClaimAud Claim = "aud" ClaimEmail Claim = "email" ClaimEmailVerified Claim = "email_verified" ClaimExp Claim = "exp" ClaimFamilyName Claim = "family_name" ClaimGivenName Claim = "given_name" ClaimIat Claim = "iat" ClaimIss Claim = "iss" ClaimLocale Claim = "locale" ClaimName Claim = "name" ClaimPicture Claim = "picture" ClaimSub Claim = "sub" )
Defines values for Claim.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.3
func (c *Client) DeleteApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1Organizations ¶ added in v0.1.3
func (*Client) GetApiV1OrganizationsOrganizationAcl ¶ added in v0.1.23
func (c *Client) GetApiV1OrganizationsOrganizationAcl(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationGroups ¶ added in v0.1.3
func (c *Client) GetApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.20
func (c *Client) GetApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationOauth2Providers ¶ added in v0.1.18
func (c *Client) GetApiV1OrganizationsOrganizationOauth2Providers(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOauth2V2Authorization ¶
func (*Client) GetOauth2V2Jwks ¶
func (*Client) GetOauth2V2Userinfo ¶ added in v0.1.14
func (*Client) GetOidcCallback ¶
func (*Client) GetWellKnownOpenidConfiguration ¶
func (*Client) PostApiV1Organizations ¶ added in v0.1.13
func (c *Client) PostApiV1Organizations(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationGroups ¶ added in v0.1.3
func (c *Client) PostApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationGroupsWithBody ¶ added in v0.1.3
func (*Client) PostApiV1OrganizationsWithBody ¶ added in v0.1.13
func (*Client) PostOauth2V2LoginWithBody ¶
func (*Client) PostOauth2V2LoginWithFormdataBody ¶
func (c *Client) PostOauth2V2LoginWithFormdataBody(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostOauth2V2TokenWithBody ¶
func (*Client) PostOauth2V2TokenWithFormdataBody ¶
func (c *Client) PostOauth2V2TokenWithFormdataBody(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganization ¶ added in v0.1.3
func (c *Client) PutApiV1OrganizationsOrganization(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.3
func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganizationGroupsGroupidWithBody ¶ added in v0.1.3
func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupidWithBody(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganizationWithBody ¶ added in v0.1.3
type ClientInterface ¶
type ClientInterface interface { // GetWellKnownOpenidConfiguration request GetWellKnownOpenidConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1Organizations request GetApiV1Organizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1Organizations request with any body PostApiV1OrganizationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1Organizations(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiV1OrganizationsOrganization request with any body PutApiV1OrganizationsOrganizationWithBody(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutApiV1OrganizationsOrganization(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationAcl request GetApiV1OrganizationsOrganizationAcl(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationGroups request GetApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1OrganizationsOrganizationGroups request with any body PostApiV1OrganizationsOrganizationGroupsWithBody(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApiV1OrganizationsOrganizationGroupsGroupid request DeleteApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationGroupsGroupid request GetApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiV1OrganizationsOrganizationGroupsGroupid request with any body PutApiV1OrganizationsOrganizationGroupsGroupidWithBody(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationOauth2Providers request GetApiV1OrganizationsOrganizationOauth2Providers(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOauth2V2Authorization request GetOauth2V2Authorization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOauth2V2Jwks request GetOauth2V2Jwks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostOauth2V2Login request with any body PostOauth2V2LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostOauth2V2LoginWithFormdataBody(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostOauth2V2Token request with any body PostOauth2V2TokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostOauth2V2TokenWithFormdataBody(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOauth2V2Userinfo request GetOauth2V2Userinfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOidcCallback request GetOidcCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse request returning *DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationAclWithResponse ¶ added in v0.1.23
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationAclWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationAclResponse, error)
GetApiV1OrganizationsOrganizationAclWithResponse request returning *GetApiV1OrganizationsOrganizationAclResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse ¶ added in v0.1.20
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse request returning *GetApiV1OrganizationsOrganizationGroupsGroupidResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)
GetApiV1OrganizationsOrganizationGroupsWithResponse request returning *GetApiV1OrganizationsOrganizationGroupsResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse ¶ added in v0.1.18
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)
GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse request returning *GetApiV1OrganizationsOrganizationOauth2ProvidersResponse
func (*ClientWithResponses) GetApiV1OrganizationsWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) GetApiV1OrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsResponse, error)
GetApiV1OrganizationsWithResponse request returning *GetApiV1OrganizationsResponse
func (*ClientWithResponses) GetOauth2V2AuthorizationWithResponse ¶
func (c *ClientWithResponses) GetOauth2V2AuthorizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2AuthorizationResponse, error)
GetOauth2V2AuthorizationWithResponse request returning *GetOauth2V2AuthorizationResponse
func (*ClientWithResponses) GetOauth2V2JwksWithResponse ¶
func (c *ClientWithResponses) GetOauth2V2JwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2JwksResponse, error)
GetOauth2V2JwksWithResponse request returning *GetOauth2V2JwksResponse
func (*ClientWithResponses) GetOauth2V2UserinfoWithResponse ¶ added in v0.1.14
func (c *ClientWithResponses) GetOauth2V2UserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2UserinfoResponse, error)
GetOauth2V2UserinfoWithResponse request returning *GetOauth2V2UserinfoResponse
func (*ClientWithResponses) GetOidcCallbackWithResponse ¶
func (c *ClientWithResponses) GetOidcCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcCallbackResponse, error)
GetOidcCallbackWithResponse request returning *GetOidcCallbackResponse
func (*ClientWithResponses) GetWellKnownOpenidConfigurationWithResponse ¶
func (c *ClientWithResponses) GetWellKnownOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOpenidConfigurationResponse, error)
GetWellKnownOpenidConfigurationWithResponse request returning *GetWellKnownOpenidConfigurationResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)
PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationGroupsResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)
func (*ClientWithResponses) PostApiV1OrganizationsWithBodyWithResponse ¶ added in v0.1.13
func (c *ClientWithResponses) PostApiV1OrganizationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error)
PostApiV1OrganizationsWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsResponse
func (*ClientWithResponses) PostApiV1OrganizationsWithResponse ¶ added in v0.1.13
func (c *ClientWithResponses) PostApiV1OrganizationsWithResponse(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error)
func (*ClientWithResponses) PostOauth2V2LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) PostOauth2V2LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error)
PostOauth2V2LoginWithBodyWithResponse request with arbitrary body returning *PostOauth2V2LoginResponse
func (*ClientWithResponses) PostOauth2V2LoginWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostOauth2V2LoginWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error)
func (*ClientWithResponses) PostOauth2V2TokenWithBodyWithResponse ¶
func (c *ClientWithResponses) PostOauth2V2TokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error)
PostOauth2V2TokenWithBodyWithResponse request with arbitrary body returning *PostOauth2V2TokenResponse
func (*ClientWithResponses) PostOauth2V2TokenWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostOauth2V2TokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error)
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse request with arbitrary body returning *PutApiV1OrganizationsOrganizationGroupsGroupidResponse
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationWithBodyWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)
PutApiV1OrganizationsOrganizationWithBodyWithResponse request with arbitrary body returning *PutApiV1OrganizationsOrganizationResponse
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationWithResponse ¶ added in v0.1.3
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithResponse(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetWellKnownOpenidConfiguration request GetWellKnownOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOpenidConfigurationResponse, error) // GetApiV1Organizations request GetApiV1OrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsResponse, error) // PostApiV1Organizations request with any body PostApiV1OrganizationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error) PostApiV1OrganizationsWithResponse(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error) // PutApiV1OrganizationsOrganization request with any body PutApiV1OrganizationsOrganizationWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error) PutApiV1OrganizationsOrganizationWithResponse(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error) // GetApiV1OrganizationsOrganizationAcl request GetApiV1OrganizationsOrganizationAclWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationAclResponse, error) // GetApiV1OrganizationsOrganizationGroups request GetApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsResponse, error) // PostApiV1OrganizationsOrganizationGroups request with any body PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error) PostApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error) // DeleteApiV1OrganizationsOrganizationGroupsGroupid request DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error) // GetApiV1OrganizationsOrganizationGroupsGroupid request GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error) // PutApiV1OrganizationsOrganizationGroupsGroupid request with any body PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error) PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error) // GetApiV1OrganizationsOrganizationOauth2Providers request GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error) // GetOauth2V2Authorization request GetOauth2V2AuthorizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2AuthorizationResponse, error) // GetOauth2V2Jwks request GetOauth2V2JwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2JwksResponse, error) // PostOauth2V2Login request with any body PostOauth2V2LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error) PostOauth2V2LoginWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error) // PostOauth2V2Token request with any body PostOauth2V2TokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error) PostOauth2V2TokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error) // GetOauth2V2Userinfo request GetOauth2V2UserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2UserinfoResponse, error) // GetOidcCallback request GetOidcCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcCallbackResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CodeChallengeMethod ¶
type CodeChallengeMethod string
CodeChallengeMethod Supported code challenge methods.
const ( Plain CodeChallengeMethod = "plain" S256 CodeChallengeMethod = "S256" )
Defines values for CodeChallengeMethod.
type ConflictResponse ¶ added in v0.1.13
type ConflictResponse = Oauth2Error
ConflictResponse Generic error message.
type CreateGroupRequest ¶ added in v0.1.3
type CreateGroupRequest = Group
CreateGroupRequest A group.
type CreateOrganizationRequest ¶ added in v0.1.13
type CreateOrganizationRequest = Organization
CreateOrganizationRequest An organization.
type DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.3
type DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error JSON403 *Oauth2Error JSON404 *Oauth2Error JSON500 *Oauth2Error }
func ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.3
func ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse call
func (DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) Status ¶ added in v0.1.3
func (r DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode ¶ added in v0.1.3
func (r DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForbiddenResponse ¶ added in v0.1.13
type ForbiddenResponse = Oauth2Error
ForbiddenResponse Generic error message.
type GetApiV1OrganizationsOrganizationAclResponse ¶ added in v0.1.23
type GetApiV1OrganizationsOrganizationAclResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Acl JSON401 *Oauth2Error JSON500 *Oauth2Error }
func ParseGetApiV1OrganizationsOrganizationAclResponse ¶ added in v0.1.23
func ParseGetApiV1OrganizationsOrganizationAclResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationAclResponse, error)
ParseGetApiV1OrganizationsOrganizationAclResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationAclWithResponse call
func (GetApiV1OrganizationsOrganizationAclResponse) Status ¶ added in v0.1.23
func (r GetApiV1OrganizationsOrganizationAclResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationAclResponse) StatusCode ¶ added in v0.1.23
func (r GetApiV1OrganizationsOrganizationAclResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.20
type GetApiV1OrganizationsOrganizationGroupsGroupidResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Group JSON401 *Oauth2Error JSON403 *Oauth2Error JSON500 *Oauth2Error }
func ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.20
func ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse call
func (GetApiV1OrganizationsOrganizationGroupsGroupidResponse) Status ¶ added in v0.1.20
func (r GetApiV1OrganizationsOrganizationGroupsGroupidResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode ¶ added in v0.1.20
func (r GetApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationGroupsResponse ¶ added in v0.1.3
type GetApiV1OrganizationsOrganizationGroupsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Groups JSON401 *Oauth2Error JSON403 *Oauth2Error JSON500 *Oauth2Error }
func ParseGetApiV1OrganizationsOrganizationGroupsResponse ¶ added in v0.1.3
func ParseGetApiV1OrganizationsOrganizationGroupsResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)
ParseGetApiV1OrganizationsOrganizationGroupsResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationGroupsWithResponse call
func (GetApiV1OrganizationsOrganizationGroupsResponse) Status ¶ added in v0.1.3
func (r GetApiV1OrganizationsOrganizationGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationGroupsResponse) StatusCode ¶ added in v0.1.3
func (r GetApiV1OrganizationsOrganizationGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationOauth2ProvidersResponse ¶ added in v0.1.18
type GetApiV1OrganizationsOrganizationOauth2ProvidersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Oauth2Providers JSON401 *Oauth2Error JSON500 *Oauth2Error }
func ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse ¶ added in v0.1.18
func ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)
ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse call
func (GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) Status ¶ added in v0.1.18
func (r GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) StatusCode ¶ added in v0.1.18
func (r GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsResponse ¶ added in v0.1.3
type GetApiV1OrganizationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Organizations JSON401 *Oauth2Error JSON500 *Oauth2Error }
func ParseGetApiV1OrganizationsResponse ¶ added in v0.1.3
func ParseGetApiV1OrganizationsResponse(rsp *http.Response) (*GetApiV1OrganizationsResponse, error)
ParseGetApiV1OrganizationsResponse parses an HTTP response from a GetApiV1OrganizationsWithResponse call
func (GetApiV1OrganizationsResponse) Status ¶ added in v0.1.3
func (r GetApiV1OrganizationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsResponse) StatusCode ¶ added in v0.1.3
func (r GetApiV1OrganizationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOauth2V2AuthorizationResponse ¶
func ParseGetOauth2V2AuthorizationResponse ¶
func ParseGetOauth2V2AuthorizationResponse(rsp *http.Response) (*GetOauth2V2AuthorizationResponse, error)
ParseGetOauth2V2AuthorizationResponse parses an HTTP response from a GetOauth2V2AuthorizationWithResponse call
func (GetOauth2V2AuthorizationResponse) Status ¶
func (r GetOauth2V2AuthorizationResponse) Status() string
Status returns HTTPResponse.Status
func (GetOauth2V2AuthorizationResponse) StatusCode ¶
func (r GetOauth2V2AuthorizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOauth2V2JwksResponse ¶
type GetOauth2V2JwksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *JsonWebKeySet JSON500 *Oauth2Error }
func ParseGetOauth2V2JwksResponse ¶
func ParseGetOauth2V2JwksResponse(rsp *http.Response) (*GetOauth2V2JwksResponse, error)
ParseGetOauth2V2JwksResponse parses an HTTP response from a GetOauth2V2JwksWithResponse call
func (GetOauth2V2JwksResponse) Status ¶
func (r GetOauth2V2JwksResponse) Status() string
Status returns HTTPResponse.Status
func (GetOauth2V2JwksResponse) StatusCode ¶
func (r GetOauth2V2JwksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOauth2V2UserinfoResponse ¶ added in v0.1.14
type GetOauth2V2UserinfoResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error }
func ParseGetOauth2V2UserinfoResponse ¶ added in v0.1.14
func ParseGetOauth2V2UserinfoResponse(rsp *http.Response) (*GetOauth2V2UserinfoResponse, error)
ParseGetOauth2V2UserinfoResponse parses an HTTP response from a GetOauth2V2UserinfoWithResponse call
func (GetOauth2V2UserinfoResponse) Status ¶ added in v0.1.14
func (r GetOauth2V2UserinfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetOauth2V2UserinfoResponse) StatusCode ¶ added in v0.1.14
func (r GetOauth2V2UserinfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOidcCallbackResponse ¶
type GetOidcCallbackResponse struct { Body []byte HTTPResponse *http.Response JSON500 *Oauth2Error }
func ParseGetOidcCallbackResponse ¶
func ParseGetOidcCallbackResponse(rsp *http.Response) (*GetOidcCallbackResponse, error)
ParseGetOidcCallbackResponse parses an HTTP response from a GetOidcCallbackWithResponse call
func (GetOidcCallbackResponse) Status ¶
func (r GetOidcCallbackResponse) Status() string
Status returns HTTPResponse.Status
func (GetOidcCallbackResponse) StatusCode ¶
func (r GetOidcCallbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWellKnownOpenidConfigurationResponse ¶
type GetWellKnownOpenidConfigurationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OpenidConfiguration }
func ParseGetWellKnownOpenidConfigurationResponse ¶
func ParseGetWellKnownOpenidConfigurationResponse(rsp *http.Response) (*GetWellKnownOpenidConfigurationResponse, error)
ParseGetWellKnownOpenidConfigurationResponse parses an HTTP response from a GetWellKnownOpenidConfigurationWithResponse call
func (GetWellKnownOpenidConfigurationResponse) Status ¶
func (r GetWellKnownOpenidConfigurationResponse) Status() string
Status returns HTTPResponse.Status
func (GetWellKnownOpenidConfigurationResponse) StatusCode ¶
func (r GetWellKnownOpenidConfigurationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Group ¶ added in v0.1.20
type Group struct { // Id An immutable group ID. Id string `json:"id"` // Name The group name. Name string `json:"name"` // Roles A list of roles. Roles RoleList `json:"roles"` // Users A list of users. Users *UserList `json:"users,omitempty"` }
Group A group.
type GroupidParameter ¶ added in v0.1.3
type GroupidParameter = string
GroupidParameter defines model for groupidParameter.
type GroupsResponse ¶ added in v0.1.20
type GroupsResponse = Groups
GroupsResponse A list of groups.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalServerErrorResponse ¶
type InternalServerErrorResponse = Oauth2Error
InternalServerErrorResponse Generic error message.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type JsonWebKey ¶
type JsonWebKey = map[string]interface{}
JsonWebKey JSON web key. See the relevant JWKS documentation for further details.
type JsonWebKeySet ¶
type JsonWebKeySet struct {
Keys *[]JsonWebKey `json:"keys,omitempty"`
}
JsonWebKeySet JSON web key set. This data type is defined by an external 3rd party standards committee. Consult the relevant documentation for further details.
type JwksResponse ¶
type JwksResponse = JsonWebKeySet
JwksResponse JSON web key set. This data type is defined by an external 3rd party standards committee. Consult the relevant documentation for further details.
type LoginRequestOptions ¶
type LoginRequestOptions struct { // Email The user's email address. Email *string `json:"email"` // Provider The explcit provider type. Provider *string `json:"provider"` // State The state string supplied by the authorization endpoint. State string `json:"state"` }
LoginRequestOptions Login request options.
type NotFoundResponse ¶ added in v0.1.20
type NotFoundResponse = Oauth2Error
NotFoundResponse Generic error message.
type Oauth2Error ¶
type Oauth2Error struct { // Error A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2. Error Oauth2ErrorError `json:"error"` // ErrorDescription Verbose message describing the error. ErrorDescription string `json:"error_description"` }
Oauth2Error Generic error message.
type Oauth2ErrorError ¶
type Oauth2ErrorError string
Oauth2ErrorError A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2.
const ( AccessDenied Oauth2ErrorError = "access_denied" Conflict Oauth2ErrorError = "conflict" Forbidden Oauth2ErrorError = "forbidden" InvalidClient Oauth2ErrorError = "invalid_client" InvalidGrant Oauth2ErrorError = "invalid_grant" InvalidRequest Oauth2ErrorError = "invalid_request" InvalidScope Oauth2ErrorError = "invalid_scope" MethodNotAllowed Oauth2ErrorError = "method_not_allowed" NotFound Oauth2ErrorError = "not_found" ServerError Oauth2ErrorError = "server_error" UnsupportedGrantType Oauth2ErrorError = "unsupported_grant_type" UnsupportedMediaType Oauth2ErrorError = "unsupported_media_type" UnsupportedResponseType Oauth2ErrorError = "unsupported_response_type" )
Defines values for Oauth2ErrorError.
type Oauth2Provider ¶ added in v0.1.13
type Oauth2Provider struct { // ClientID The client identification, only shown for super admin or organization owned providers // that you are an admin for. ClientID *string `json:"clientID,omitempty"` // ClientSecret The client secret, only shown for super admin or organization owned providers // that you are an admin for. ClientSecret *string `json:"clientSecret,omitempty"` // DisplayName The name to display for the provider. DisplayName string `json:"displayName"` // Issuer The OIDC issuer, typically where to perform auto discovery relative to. Issuer string `json:"issuer"` // Name A description of the provider. Name string `json:"name"` }
Oauth2Provider An oauth2 provider.
type Oauth2Providers ¶ added in v0.1.13
type Oauth2Providers = []Oauth2Provider
Oauth2Providers A list of oauth2 providers.
type Oauth2ProvidersResponse ¶ added in v0.1.13
type Oauth2ProvidersResponse = Oauth2Providers
Oauth2ProvidersResponse A list of oauth2 providers.
type OpenidConfiguration ¶
type OpenidConfiguration struct { // AuthorizationEndpoint The oauth2 endpoint that initiates authentication. AuthorizationEndpoint string `json:"authorization_endpoint"` // ClaimsSupported A list of supported claims ClaimsSupported []Claim `json:"claims_supported"` // CodeChallengeMethodsSupported A list of code challenge methods supported. CodeChallengeMethodsSupported []CodeChallengeMethod `json:"code_challenge_methods_supported"` // GrantTypesSupported A list of supported grants for the token endpoint. GrantTypesSupported []GrantType `json:"grant_types_supported"` // IdTokenSigningAlgValuesSupported A list of signing algorithms supported for ID tokens. IdTokenSigningAlgValuesSupported []SigningAlgorithm `json:"id_token_signing_alg_values_supported"` // Issuer The OpenID Issuer (iss field). Issuer string `json:"issuer"` // JwksUri The oauth2 endpoint that exposes public signing keys for token validation. JwksUri string `json:"jwks_uri"` // ResponseTypesSupported A list of supported response types that can be requested for the authorization endpoint. ResponseTypesSupported []ResponseType `json:"response_types_supported"` // ScopesSupported A list of supported oauth2 scopes. ScopesSupported []Scope `json:"scopes_supported"` // TokenEndpoint The oauth2 endpoint that is used to exchange an authentication code for tokens. TokenEndpoint string `json:"token_endpoint"` // TokenEndpointAuthMethodsSupported A list of supported authentication methods for the token endpoint. TokenEndpointAuthMethodsSupported []AuthMethod `json:"token_endpoint_auth_methods_supported"` // UserinfoEndpoint The oidc endpoint used to get information about an access token's user. UserinfoEndpoint string `json:"userinfo_endpoint"` }
OpenidConfiguration OpenID configuration.
type OpenidConfigurationResponse ¶
type OpenidConfigurationResponse = OpenidConfiguration
OpenidConfigurationResponse OpenID configuration.
type Organization ¶ added in v0.1.13
type Organization struct { // Domain An email domain that identifies all users. Domain *string `json:"domain,omitempty"` // Name A unique organization name. Name string `json:"name"` // ProviderName An identity provider for the organization. This must be an oauth2 provider name. ProviderName *string `json:"providerName,omitempty"` }
Organization An organization.
type OrganizationParameter ¶ added in v0.1.3
type OrganizationParameter = string
OrganizationParameter defines model for organizationParameter.
type Organizations ¶ added in v0.1.13
type Organizations = []Organization
Organizations A list of organizations.
type OrganizationsResponse ¶ added in v0.1.13
type OrganizationsResponse = Organizations
OrganizationsResponse A list of organizations.
type PostApiV1OrganizationsJSONRequestBody ¶ added in v0.1.13
type PostApiV1OrganizationsJSONRequestBody = Organization
PostApiV1OrganizationsJSONRequestBody defines body for PostApiV1Organizations for application/json ContentType.
type PostApiV1OrganizationsOrganizationGroupsJSONRequestBody ¶ added in v0.1.3
type PostApiV1OrganizationsOrganizationGroupsJSONRequestBody = Group
PostApiV1OrganizationsOrganizationGroupsJSONRequestBody defines body for PostApiV1OrganizationsOrganizationGroups for application/json ContentType.
type PostApiV1OrganizationsOrganizationGroupsResponse ¶ added in v0.1.3
type PostApiV1OrganizationsOrganizationGroupsResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error JSON403 *Oauth2Error JSON409 *Oauth2Error JSON500 *Oauth2Error }
func ParsePostApiV1OrganizationsOrganizationGroupsResponse ¶ added in v0.1.3
func ParsePostApiV1OrganizationsOrganizationGroupsResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)
ParsePostApiV1OrganizationsOrganizationGroupsResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationGroupsWithResponse call
func (PostApiV1OrganizationsOrganizationGroupsResponse) Status ¶ added in v0.1.3
func (r PostApiV1OrganizationsOrganizationGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV1OrganizationsOrganizationGroupsResponse) StatusCode ¶ added in v0.1.3
func (r PostApiV1OrganizationsOrganizationGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiV1OrganizationsResponse ¶ added in v0.1.13
type PostApiV1OrganizationsResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error JSON403 *Oauth2Error JSON409 *Oauth2Error JSON500 *Oauth2Error }
func ParsePostApiV1OrganizationsResponse ¶ added in v0.1.13
func ParsePostApiV1OrganizationsResponse(rsp *http.Response) (*PostApiV1OrganizationsResponse, error)
ParsePostApiV1OrganizationsResponse parses an HTTP response from a PostApiV1OrganizationsWithResponse call
func (PostApiV1OrganizationsResponse) Status ¶ added in v0.1.13
func (r PostApiV1OrganizationsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV1OrganizationsResponse) StatusCode ¶ added in v0.1.13
func (r PostApiV1OrganizationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOauth2V2LoginFormdataRequestBody ¶
type PostOauth2V2LoginFormdataRequestBody = LoginRequestOptions
PostOauth2V2LoginFormdataRequestBody defines body for PostOauth2V2Login for application/x-www-form-urlencoded ContentType.
type PostOauth2V2LoginResponse ¶
func ParsePostOauth2V2LoginResponse ¶
func ParsePostOauth2V2LoginResponse(rsp *http.Response) (*PostOauth2V2LoginResponse, error)
ParsePostOauth2V2LoginResponse parses an HTTP response from a PostOauth2V2LoginWithResponse call
func (PostOauth2V2LoginResponse) Status ¶
func (r PostOauth2V2LoginResponse) Status() string
Status returns HTTPResponse.Status
func (PostOauth2V2LoginResponse) StatusCode ¶
func (r PostOauth2V2LoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOauth2V2TokenFormdataRequestBody ¶
type PostOauth2V2TokenFormdataRequestBody = TokenRequestOptions
PostOauth2V2TokenFormdataRequestBody defines body for PostOauth2V2Token for application/x-www-form-urlencoded ContentType.
type PostOauth2V2TokenResponse ¶
type PostOauth2V2TokenResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Token JSON400 *Oauth2Error JSON401 *Oauth2Error JSON500 *Oauth2Error }
func ParsePostOauth2V2TokenResponse ¶
func ParsePostOauth2V2TokenResponse(rsp *http.Response) (*PostOauth2V2TokenResponse, error)
ParsePostOauth2V2TokenResponse parses an HTTP response from a PostOauth2V2TokenWithResponse call
func (PostOauth2V2TokenResponse) Status ¶
func (r PostOauth2V2TokenResponse) Status() string
Status returns HTTPResponse.Status
func (PostOauth2V2TokenResponse) StatusCode ¶
func (r PostOauth2V2TokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody ¶ added in v0.1.3
type PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody = Group
PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody defines body for PutApiV1OrganizationsOrganizationGroupsGroupid for application/json ContentType.
type PutApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.3
type PutApiV1OrganizationsOrganizationGroupsGroupidResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error JSON403 *Oauth2Error JSON404 *Oauth2Error JSON500 *Oauth2Error }
func ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse ¶ added in v0.1.3
func ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)
ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse call
func (PutApiV1OrganizationsOrganizationGroupsGroupidResponse) Status ¶ added in v0.1.3
func (r PutApiV1OrganizationsOrganizationGroupsGroupidResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode ¶ added in v0.1.3
func (r PutApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiV1OrganizationsOrganizationJSONRequestBody ¶ added in v0.1.3
type PutApiV1OrganizationsOrganizationJSONRequestBody = Organization
PutApiV1OrganizationsOrganizationJSONRequestBody defines body for PutApiV1OrganizationsOrganization for application/json ContentType.
type PutApiV1OrganizationsOrganizationResponse ¶ added in v0.1.3
type PutApiV1OrganizationsOrganizationResponse struct { Body []byte HTTPResponse *http.Response JSON401 *Oauth2Error JSON403 *Oauth2Error }
func ParsePutApiV1OrganizationsOrganizationResponse ¶ added in v0.1.3
func ParsePutApiV1OrganizationsOrganizationResponse(rsp *http.Response) (*PutApiV1OrganizationsOrganizationResponse, error)
ParsePutApiV1OrganizationsOrganizationResponse parses an HTTP response from a PutApiV1OrganizationsOrganizationWithResponse call
func (PutApiV1OrganizationsOrganizationResponse) Status ¶ added in v0.1.3
func (r PutApiV1OrganizationsOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiV1OrganizationsOrganizationResponse) StatusCode ¶ added in v0.1.3
func (r PutApiV1OrganizationsOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ResponseType ¶
type ResponseType string
ResponseType Supported response types.
const ( ResponseTypeCode ResponseType = "code" ResponseTypeCodeIdToken ResponseType = "code id_token" ResponseTypeCodeToken ResponseType = "code token" ResponseTypeCodeTokenIdToken ResponseType = "code token id_token" ResponseTypeIdToken ResponseType = "id_token" ResponseTypeNone ResponseType = "none" ResponseTypeToken ResponseType = "token" ResponseTypeTokenIdToken ResponseType = "token id_token" )
Defines values for ResponseType.
type ServerInterface ¶
type ServerInterface interface { // (GET /.well-known/openid-configuration) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request) // (GET /api/v1/organizations) GetApiV1Organizations(w http.ResponseWriter, r *http.Request) // (POST /api/v1/organizations) PostApiV1Organizations(w http.ResponseWriter, r *http.Request) // (PUT /api/v1/organizations/{organization}) PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request, organization OrganizationParameter) // (GET /api/v1/organizations/{organization}/acl) GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request, organization OrganizationParameter) // (GET /api/v1/organizations/{organization}/groups) GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization OrganizationParameter) // (POST /api/v1/organizations/{organization}/groups) PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization OrganizationParameter) // (DELETE /api/v1/organizations/{organization}/groups/{groupid}) DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter) // (GET /api/v1/organizations/{organization}/groups/{groupid}) GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter) // (PUT /api/v1/organizations/{organization}/groups/{groupid}) PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter) // (GET /api/v1/organizations/{organization}/oauth2/providers) GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request, organization OrganizationParameter) // (GET /oauth2/v2/authorization) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request) // (GET /oauth2/v2/jwks) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request) // (POST /oauth2/v2/login) PostOauth2V2Login(w http.ResponseWriter, r *http.Request) // (POST /oauth2/v2/token) PostOauth2V2Token(w http.ResponseWriter, r *http.Request) // (GET /oauth2/v2/userinfo) GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request) // (GET /oidc/callback) GetOidcCallback(w http.ResponseWriter, r *http.Request) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
DeleteApiV1OrganizationsOrganizationGroupsGroupid operation middleware
func (*ServerInterfaceWrapper) GetApiV1Organizations ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) GetApiV1Organizations(w http.ResponseWriter, r *http.Request)
GetApiV1Organizations operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationAcl ¶ added in v0.1.23
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationAcl operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroups ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationGroups operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.20
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationGroupsGroupid operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationOauth2Providers ¶ added in v0.1.18
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationOauth2Providers operation middleware
func (*ServerInterfaceWrapper) GetOauth2V2Authorization ¶
func (siw *ServerInterfaceWrapper) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)
GetOauth2V2Authorization operation middleware
func (*ServerInterfaceWrapper) GetOauth2V2Jwks ¶
func (siw *ServerInterfaceWrapper) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)
GetOauth2V2Jwks operation middleware
func (*ServerInterfaceWrapper) GetOauth2V2Userinfo ¶ added in v0.1.14
func (siw *ServerInterfaceWrapper) GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request)
GetOauth2V2Userinfo operation middleware
func (*ServerInterfaceWrapper) GetOidcCallback ¶
func (siw *ServerInterfaceWrapper) GetOidcCallback(w http.ResponseWriter, r *http.Request)
GetOidcCallback operation middleware
func (*ServerInterfaceWrapper) GetWellKnownOpenidConfiguration ¶
func (siw *ServerInterfaceWrapper) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)
GetWellKnownOpenidConfiguration operation middleware
func (*ServerInterfaceWrapper) PostApiV1Organizations ¶ added in v0.1.13
func (siw *ServerInterfaceWrapper) PostApiV1Organizations(w http.ResponseWriter, r *http.Request)
PostApiV1Organizations operation middleware
func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationGroups ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)
PostApiV1OrganizationsOrganizationGroups operation middleware
func (*ServerInterfaceWrapper) PostOauth2V2Login ¶
func (siw *ServerInterfaceWrapper) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)
PostOauth2V2Login operation middleware
func (*ServerInterfaceWrapper) PostOauth2V2Token ¶
func (siw *ServerInterfaceWrapper) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)
PostOauth2V2Token operation middleware
func (*ServerInterfaceWrapper) PutApiV1OrganizationsOrganization ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request)
PutApiV1OrganizationsOrganization operation middleware
func (*ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationGroupsGroupid ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)
PutApiV1OrganizationsOrganizationGroupsGroupid operation middleware
type SigningAlgorithm ¶
type SigningAlgorithm string
SigningAlgorithm Supported signing algorithms.
const (
ES512 SigningAlgorithm = "ES512"
)
Defines values for SigningAlgorithm.
type Token ¶
type Token struct { // AccessToken The opaque access token. AccessToken string `json:"access_token"` // ExpiresIn The time in seconds the token will last for. ExpiresIn int `json:"expires_in"` // IdToken An OIDC ID token. IdToken *string `json:"id_token,omitempty"` // TokenType How the access token is to be presented to the resource server. TokenType string `json:"token_type"` }
Token Oauth2 token result.
type TokenRequestOptions ¶
type TokenRequestOptions struct { // ClientId Client ID. Required with the "code" grant type. ClientId *string `json:"client_id"` // Code Authorization code. Required with the "code" grant type. Code *string `json:"code"` // CodeVerifier Client code verifier. Required with the "code" grant type. CodeVerifier *string `json:"code_verifier"` // GrantType Supported grant type. Must be either "code" or "password". GrantType string `json:"grant_type"` // Password Resource owner password. Required with the "password" grant type. Password *string `json:"password"` // RedirectUri Client redirect URI. Required with the "code" grant type. RedirectUri *string `json:"redirect_uri"` // Username Resource owner username. Required with the "password" grant type. Username *string `json:"username"` // contains filtered or unexported fields }
TokenRequestOptions oauth2 token endpoint.
func (TokenRequestOptions) AsTokenRequestOptions0 ¶
func (t TokenRequestOptions) AsTokenRequestOptions0() (TokenRequestOptions0, error)
AsTokenRequestOptions0 returns the union data inside the TokenRequestOptions as a TokenRequestOptions0
func (TokenRequestOptions) AsTokenRequestOptions1 ¶
func (t TokenRequestOptions) AsTokenRequestOptions1() (TokenRequestOptions1, error)
AsTokenRequestOptions1 returns the union data inside the TokenRequestOptions as a TokenRequestOptions1
func (*TokenRequestOptions) FromTokenRequestOptions0 ¶
func (t *TokenRequestOptions) FromTokenRequestOptions0(v TokenRequestOptions0) error
FromTokenRequestOptions0 overwrites any union data inside the TokenRequestOptions as the provided TokenRequestOptions0
func (*TokenRequestOptions) FromTokenRequestOptions1 ¶
func (t *TokenRequestOptions) FromTokenRequestOptions1(v TokenRequestOptions1) error
FromTokenRequestOptions1 overwrites any union data inside the TokenRequestOptions as the provided TokenRequestOptions1
func (TokenRequestOptions) MarshalJSON ¶
func (t TokenRequestOptions) MarshalJSON() ([]byte, error)
func (*TokenRequestOptions) MergeTokenRequestOptions0 ¶
func (t *TokenRequestOptions) MergeTokenRequestOptions0(v TokenRequestOptions0) error
MergeTokenRequestOptions0 performs a merge with any union data inside the TokenRequestOptions, using the provided TokenRequestOptions0
func (*TokenRequestOptions) MergeTokenRequestOptions1 ¶
func (t *TokenRequestOptions) MergeTokenRequestOptions1(v TokenRequestOptions1) error
MergeTokenRequestOptions1 performs a merge with any union data inside the TokenRequestOptions, using the provided TokenRequestOptions1
func (*TokenRequestOptions) UnmarshalJSON ¶
func (t *TokenRequestOptions) UnmarshalJSON(b []byte) error
type TokenRequestOptions0 ¶
type TokenRequestOptions0 struct {
GrantType *interface{} `json:"grant_type,omitempty"`
}
TokenRequestOptions0 defines model for .
type TokenRequestOptions1 ¶
type TokenRequestOptions1 struct {
GrantType *interface{} `json:"grant_type,omitempty"`
}
TokenRequestOptions1 defines model for .
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnauthorizedResponse ¶
type UnauthorizedResponse = Oauth2Error
UnauthorizedResponse Generic error message.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshallingParamError ¶
func (*UnmarshallingParamError) Error ¶
func (e *UnmarshallingParamError) Error() string
func (*UnmarshallingParamError) Unwrap ¶
func (e *UnmarshallingParamError) Unwrap() error
type UpdateGroupRequest ¶ added in v0.1.3
type UpdateGroupRequest = Group
UpdateGroupRequest A group.
type UpdateOrganizationRequest ¶ added in v0.1.3
type UpdateOrganizationRequest = Organization
UpdateOrganizationRequest An organization.
type UserinfoResponse ¶ added in v0.1.14
type UserinfoResponse interface{}
UserinfoResponse defines model for userinfoResponse.