Documentation ¶
Index ¶
- func CreateConsents(client *AapClient, url string, requests []CreateConsentsRequest) (status int, responses bulky.Responses, err error)
- func CreateConsentsAuthorize(client *AapClient, url string, requests []CreateConsentsAuthorizeRequest) (status int, responses bulky.Responses, err error)
- func CreateConsentsReject(client *AapClient, url string, requests []CreateConsentsRejectRequest) (status int, responses bulky.Responses, err error)
- func CreateEntities(client *AapClient, url string, requests []CreateEntitiesRequest) (status int, responses bulky.Responses, err error)
- func CreateGrants(client *AapClient, url string, requests []CreateGrantsRequest) (status int, responses bulky.Responses, err error)
- func CreatePublishes(client *AapClient, url string, requests []CreatePublishesRequest) (status int, responses bulky.Responses, err error)
- func CreateScopes(client *AapClient, url string, requests []CreateScopesRequest) (status int, responses bulky.Responses, err error)
- func CreateShadows(client *AapClient, url string, requests []CreateShadowsRequest) (status int, responses bulky.Responses, err error)
- func CreateSubscriptions(client *AapClient, url string, requests []CreateSubscriptionsRequest) (status int, responses bulky.Responses, err error)
- func DeleteConsents(client *AapClient, url string, requests []DeleteConsentsRequest) (status int, responses bulky.Responses, err error)
- func DeleteGrants(client *AapClient, url string, requests []DeleteGrantsRequest) (status int, responses bulky.Responses, err error)
- func DeleteShadows(client *AapClient, url string, requests []DeleteShadowsRequest) (status int, responses bulky.Responses, err error)
- func DeleteSubscriptions(client *AapClient, url string, requests []DeleteSubscriptionsRequest) (status int, responses bulky.Responses, err error)
- func ReadConsents(client *AapClient, url string, requests []ReadConsentsRequest) (status int, responses bulky.Responses, err error)
- func ReadConsentsAuthorize(client *AapClient, url string, requests []ReadConsentsAuthorizeRequest) (status int, responses bulky.Responses, err error)
- func ReadEntitiesJudge(client *AapClient, url string, requests []ReadEntitiesJudgeRequest) (status int, responses bulky.Responses, err error)
- func ReadGrants(client *AapClient, url string, requests []ReadGrantsRequest) (status int, responses bulky.Responses, err error)
- func ReadPublishes(client *AapClient, url string, requests []ReadPublishesRequest) (status int, responses bulky.Responses, err error)
- func ReadScopes(client *AapClient, url string, requests []ReadScopesRequest) (status int, responses bulky.Responses, err error)
- func ReadShadows(client *AapClient, url string, requests []ReadShadowsRequest) (status int, responses bulky.Responses, err error)
- func ReadSubscriptions(client *AapClient, url string, requests []ReadSubscriptionsRequest) (status int, responses bulky.Responses, err error)
- func UpdatePublishes(client *AapClient, url string, requests []UpdatePublishesRequest) (status int, responses bulky.Responses, err error)
- func UpdateScopes(client *AapClient, url string, requests []UpdateScopesRequest) (status int, responses bulky.Responses, err error)
- type AapClient
- type Authorization
- type Consent
- type ConsentRequest
- type CreateConsentsAuthorizeRequest
- type CreateConsentsAuthorizeResponse
- type CreateConsentsRejectRequest
- type CreateConsentsRejectResponse
- type CreateConsentsRequest
- type CreateConsentsResponse
- type CreateEntitiesRequest
- type CreateEntitiesResponse
- type CreateGrantsRequest
- type CreateGrantsResponse
- type CreatePublishesRequest
- type CreatePublishesResponse
- type CreateScopesRequest
- type CreateScopesResponse
- type CreateShadowsRequest
- type CreateShadowsResponse
- type CreateSubscriptionsRequest
- type CreateSubscriptionsResponse
- type DeleteConsentsRequest
- type DeleteConsentsResponse
- type DeleteGrantsRequest
- type DeleteGrantsResponse
- type DeleteShadowsRequest
- type DeleteShadowsResponse
- type DeleteSubscriptionsRequest
- type DeleteSubscriptionsResponse
- type Entity
- type Grant
- type Publish
- type ReadConsentsAuthorizeRequest
- type ReadConsentsAuthorizeResponse
- type ReadConsentsRequest
- type ReadConsentsResponse
- type ReadEntitiesJudgeRequest
- type ReadEntitiesJudgeResponse
- type ReadGrantsRequest
- type ReadGrantsResponse
- type ReadPublishesRequest
- type ReadPublishesResponse
- type ReadScopesRequest
- type ReadScopesResponse
- type ReadShadowsRequest
- type ReadShadowsResponse
- type ReadSubscriptionsRequest
- type ReadSubscriptionsResponse
- type Scope
- type Shadow
- type Subscription
- type UpdatePublishesRequest
- type UpdatePublishesResponse
- type UpdateScopesRequest
- type UpdateScopesResponse
- type Verdict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConsents ¶
func CreateConsentsAuthorize ¶
func CreateConsentsReject ¶
func CreateEntities ¶
func CreateGrants ¶
func CreatePublishes ¶
func CreateScopes ¶
func CreateShadows ¶
func CreateSubscriptions ¶
func DeleteConsents ¶
func DeleteGrants ¶
func DeleteShadows ¶
func DeleteSubscriptions ¶
func ReadConsents ¶
func ReadConsentsAuthorize ¶
func ReadEntitiesJudge ¶
func ReadGrants ¶
func ReadPublishes ¶
func ReadScopes ¶
func ReadShadows ¶
func ReadSubscriptions ¶
func UpdatePublishes ¶
func UpdateScopes ¶
Types ¶
type AapClient ¶
func NewAapClient ¶
func NewAapClient(config *clientcredentials.Config) *AapClient
type Authorization ¶
type Authorization struct { Challenge string `json:"challenge" validate:"required"` Authorized bool `json:"authorized"` RedirectTo string `json:"redirect_to" validate:"omitempty,uri"` ClientId string `json:"client_id" validate:"required,uuid"` ClientName string `json:"client_name,omitempty"` Subject string `json:"subject" validate:"required,uuid"` SubjectName string `json:"subject_name,omitempty"` SubjectEmail string `json:"subject_email,omitempty" validate:"omitempty,email"` ConsentRequests []ConsentRequest }
type Consent ¶
type Consent struct { Reference string `json:"reference_id" validate:"required,uuid"` // OAuth2:Subject Subscriber string `json:"subscriber_id" validate:"required,uuid"` // OAuth2:Client Publisher string `json:"publisher_id" validate:"required,uuid"` // OAuth2:Resource Server Scope string `json:"scope" validate:"required"` // OAuth2:Scope, published by the resource server }
type ConsentRequest ¶
type CreateConsentsAuthorizeRequest ¶
type CreateConsentsAuthorizeRequest struct {
Challenge string `json:"challenge" validate:"required"`
}
type CreateConsentsAuthorizeResponse ¶
type CreateConsentsAuthorizeResponse Authorization
type CreateConsentsRejectRequest ¶
type CreateConsentsRejectRequest struct {
Challenge string `json:"challenge" validate:"required"`
}
type CreateConsentsRejectResponse ¶
type CreateConsentsRejectResponse Authorization
type CreateConsentsRequest ¶
type CreateConsentsRequest struct { Reference string `json:"reference_id" validate:"required,uuid"` // OAuth2:Subject Subscriber string `json:"subscriber_id" validate:"required,uuid"` // OAuth2:Client Publisher string `json:"publisher_id" validate:"required,uuid"` // OAuth2:Resource Server Scope string `json:"scope" validate:"required"` // OAuth2:Scope, published by the resource server }
type CreateConsentsResponse ¶
type CreateConsentsResponse Consent
type CreateEntitiesRequest ¶
type CreateEntitiesResponse ¶
type CreateEntitiesResponse Entity
type CreateGrantsRequest ¶
type CreateGrantsRequest struct { Identity string `json:"identity_id" validate:"required,uuid"` Scope string `json:"scope" validate:"required"` Publisher string `json:"publisher_id" validate:"required,uuid"` OnBehalfOf string `json:"on_behalf_of_id" validate:"required,uuid"` NotBefore int64 `json:"nbf" validate:"gte=0"` Expire int64 `json:"exp" validate:"eq=0|gtefield=NotBefore"` }
type CreateGrantsResponse ¶
type CreateGrantsResponse Grant
type CreatePublishesRequest ¶
type CreatePublishesResponse ¶
type CreatePublishesResponse Publish
type CreateScopesRequest ¶
type CreateScopesRequest struct {
Scope string `json:"scope" validate:"required"`
}
type CreateScopesResponse ¶
type CreateScopesResponse Scope
type CreateShadowsRequest ¶
type CreateShadowsResponse ¶
type CreateShadowsResponse Shadow
type CreateSubscriptionsResponse ¶
type CreateSubscriptionsResponse Subscription
type DeleteConsentsRequest ¶
type DeleteConsentsRequest struct { Reference string `json:"reference_id" validate:"required,uuid"` // OAuth2:Subject Subscriber string `json:"subscriber_id" validate:"required,uuid"` // OAuth2:Client Publisher string `json:"publisher_id" validate:"required,uuid"` // OAuth2:Resource Server Scope string `json:"scope" validate:"required"` // OAuth2:Scope, published by the resource server }
type DeleteConsentsResponse ¶
type DeleteConsentsResponse Consent
type DeleteGrantsRequest ¶
type DeleteGrantsResponse ¶
type DeleteGrantsResponse struct{}
type DeleteShadowsRequest ¶
type DeleteShadowsResponse ¶
type DeleteShadowsResponse Shadow
type DeleteSubscriptionsResponse ¶
type DeleteSubscriptionsResponse struct{}
type Grant ¶
type Grant struct { Identity string `json:"identity_id" validate:"required,uuid"` Scope string `json:"scope" validate:"required"` Publisher string `json:"publisher_id" validate:"required,uuid"` OnBehalfOf string `json:"on_behalf_of_id" validate:"required,uuid"` MayGrantScopes []string `json:"may_grant_scopes" validate:"omitempty"` NotBefore int64 `json:"nbf" validate:"gte=0"` Expire int64 `json:"exp" validate:"eq=0|gtefield=NotBefore"` }
type ReadConsentsAuthorizeRequest ¶
type ReadConsentsAuthorizeRequest struct {
Challenge string `json:"challenge" validate:"required"`
}
type ReadConsentsAuthorizeResponse ¶
type ReadConsentsAuthorizeResponse Authorization
type ReadConsentsRequest ¶
type ReadConsentsRequest struct { Reference string `json:"reference_id" validate:"required,uuid"` Subscriber string `json:"subscriber_id,omitempty" validate:"omitempty,uuid"` // OAuth2:Client Publisher string `json:"publisher_id,omitempty" validate:"omitempty,uuid"` // OAuth2:Resource Server Scopes []string `json:"scopes,omitempty" validate:"omitempty"` // OAuth2:Scope, published by the resource server }
type ReadConsentsResponse ¶
type ReadConsentsResponse []Consent
type ReadEntitiesJudgeRequest ¶
type ReadEntitiesJudgeRequest struct { AccessToken string `json:"access_token" validate:"required"` Publisher string `json:"publisher_id" validate:"required,uuid"` // Resource Server Audience Scope string `json:"scope" validate:"required"` Owners []string `json:"owners,omitempty" validate:"omitempty,dive,uuid"` // Resource Owners (often publisher or Subject) }
type ReadEntitiesJudgeResponse ¶
type ReadEntitiesJudgeResponse Verdict
AAP requires all calls to be HTTP override post. This prevenst leaking of access token into by accident into access log like with normal GET requests.
type ReadGrantsRequest ¶
type ReadGrantsRequest struct { Identity string `json:"identity_id,omitempty" validate:"omitempty,uuid"` Scope string `json:"scope,omitempty" validate:"omitempty"` Publisher string `json:"publisher_id,omitempty" validate:"omitempty,uuid"` OnBehalfOf string `json:"on_behalf_of_id,omitempty" validate:"omitempty,uuid"` }
type ReadGrantsResponse ¶
type ReadGrantsResponse []Grant
type ReadPublishesRequest ¶
type ReadPublishesResponse ¶
type ReadPublishesResponse []Publish
type ReadScopesRequest ¶
type ReadScopesRequest struct {
Scope string `json:"scope" validate:"required"`
}
type ReadScopesResponse ¶
type ReadScopesResponse []Scope
type ReadShadowsRequest ¶
type ReadShadowsResponse ¶
type ReadShadowsResponse []Shadow
type ReadSubscriptionsResponse ¶
type ReadSubscriptionsResponse []Subscription
type Subscription ¶
type UpdatePublishesRequest ¶
type UpdatePublishesRequest struct {
Publisher string `json:"publisher_id,omitempty" validate:"omitempty,uuid"`
}
type UpdatePublishesResponse ¶
type UpdatePublishesResponse Publish
type UpdateScopesRequest ¶
type UpdateScopesRequest struct {
Scope string `json:"scope" validate:"required"`
}
type UpdateScopesResponse ¶
type UpdateScopesResponse Scope
type Verdict ¶
type Verdict struct { Granted bool `json:"is_granted"` // Echo Publisher string `json:"publisher_id" validate:"omitempty,uuid"` // Resource Server Audience Scope string `json:"scope" validate:"omitempty"` Owners []string `json:"owners" validate:"omitempty,dive,uuid"` // Resource Owners (often publisher or Subject) // Introspected Identity string `json:"identity_id" validate:"omitempty,uuid"` // Subject access_token.sub }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.