func (ah *authProviderImpl) ApproveRequest(r *AuthRequest) (Result, error) {
	output, err := ah.authn.Authenticate(r)
	if err != nil {
		return nil, err
	}

	aut, err := ah.authz.Authorize(r)
	if err != nil {
		return nil, err
	}

	output.AddAll(aut)

	return output, nil
}
// ApproveRequest authenticates and authorizes request based on the AuthorizationStrategy
ApproveRequest authenticates and authorizes request based on the AuthorizationStrategy
// ApproveRequest authenticates and authorizes request based on the AuthorizationStrategy
func (ah *authProviderImpl) ApproveRequest(r *AuthRequest) (Result, error) {
	output, err := ah.authn.Authenticate(r)
	if err != nil {
		return nil, err
	}
	aut, err := ah.authz.Authorize(r)
	if err != nil {
		return nil, err
	}
	output.AddAll(aut)
	return output, nil
}
func ( ah * authProviderImpl ) ApproveRequest ( r * AuthRequest ) ( Result , error ) { output , err := ah . authn . Authenticate ( r ) if err != nil { return nil , err } aut , err := ah . authz . Authorize ( r ) if err != nil { return nil , err } output . AddAll ( aut ) return output , nil }
ApproveRequest authenticates and authorizes request based on the AuthorizationStrategy
ApproveRequest authenticates and authorizes request based on the AuthorizationStrategy