2 * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
3 * Author: José Bollo <jose.bollo@iot.bzh>
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 /** @defgroup AFB_AUTH
25 * Enumeration for authority (Session/Token/Assurance) definitions.
31 /** never authorized, no data */
34 /** authorized if token valid, no data */
37 /** authorized if LOA greater than or equal to data 'loa' */
40 /** authorized if permission 'text' is granted */
43 /** authorized if 'first' or 'next' is authorized */
46 /** authorized if 'first' and 'next' are authorized */
49 /** authorized if 'first' is not authorized */
52 /** always authorized, no data */
57 * Definition of an authorization entry
61 /** type of entry @see afb_auth_type */
62 enum afb_auth_type type;
65 /** text when @ref type == @ref afb_auth_Permission */
68 /** level of assurancy when @ref type == @ref afb_auth_LOA */
71 /** first child when @ref type in { @ref afb_auth_Or, @ref afb_auth_And, @ref afb_auth_Not } */
72 const struct afb_auth *first;
75 /** second child when @ref type in { @ref afb_auth_Or, @ref afb_auth_And } */
76 const struct afb_auth *next;