summaryrefslogtreecommitdiffabout
path: root/include/opkele/ax.h
Unidiff
Diffstat (limited to 'include/opkele/ax.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/ax.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/opkele/ax.h b/include/opkele/ax.h
index 996d756..ba629c1 100644
--- a/include/opkele/ax.h
+++ b/include/opkele/ax.h
@@ -2,26 +2,26 @@
2#define __OPKELE_AX_H 2#define __OPKELE_AX_H
3 3
4/** 4/**
5 * @file 5 * @file
6 * @brief Attribute Exchange extension 6 * @brief Attribute Exchange extension
7 */ 7 */
8 8
9#include <opkele/extension.h> 9#include <opkele/extension.h>
10 10
11namespace opkele { 11namespace opkele {
12 12
13 /** 13 /**
14 * OpenID simple registration extension implementation 14 * OpenID attribute exchange extension implementation
15 * http://openid.net/specs/openid-simple-registration-extension-1_0.html 15 * http://openid.net/specs/openid-attribute-exchange-1_0.html
16 */ 16 */
17 class ax_t : public extension_t { 17 class ax_t : public extension_t {
18 public: 18 public:
19 /** special "count" value for add_attribute to request fetching "as many values as possible". */ 19 /** special "count" value for add_attribute to request fetching "as many values as possible". */
20 static const int UNLIMITED_COUNT = -1; 20 static const int UNLIMITED_COUNT = -1;
21 21
22 /** 22 /**
23 * Optional URL for receiving future attribute updates. 23 * Optional URL for receiving future attribute updates.
24 * Set it before checkid_setup to send up the URL; read it after id_res to get it back. 24 * Set it before checkid_setup to send up the URL; read it after id_res to get it back.
25 */ 25 */
26 std::string update_url; 26 std::string update_url;
27 27
@@ -71,14 +71,14 @@ namespace opkele {
71 std::string alias; 71 std::string alias;
72 bool required; 72 bool required;
73 int count; 73 int count;
74 }; 74 };
75 std::vector<ax_attr_t> attrs; 75 std::vector<ax_attr_t> attrs;
76 unsigned int alias_count; // auto-incr counter for auto-named aliases 76 unsigned int alias_count; // auto-incr counter for auto-named aliases
77 77
78 /** Stores results from fetch response during id_res. */ 78 /** Stores results from fetch response during id_res. */
79 std::map<std::string, std::vector<std::string> > response_attrs; 79 std::map<std::string, std::vector<std::string> > response_attrs;
80 }; 80 };
81} 81}
82 82
83#endif /* __OPKELE_SREG_H */ 83#endif /* __OPKELE_AX_H */
84 84