author | Michael Krelin <hacker@klever.net> | 2009-12-22 21:40:18 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-12-22 21:40:18 (UTC) |
commit | 282e937cefbca9ebb564e83e79f5e5b136ec960d (patch) (unidiff) | |
tree | 31c2ae20899825157b90216f1e1c71ee1c7e1122 /include/opkele/ax.h | |
parent | 142ca30cad85769067419a9ed5b60501af67e17c (diff) | |
download | libopkele-282e937cefbca9ebb564e83e79f5e5b136ec960d.zip libopkele-282e937cefbca9ebb564e83e79f5e5b136ec960d.tar.gz libopkele-282e937cefbca9ebb564e83e79f5e5b136ec960d.tar.bz2 |
minor cleanup of ax/oauth code
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/ax.h | 6 |
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 | |||
@@ -1,31 +1,31 @@ | |||
1 | #ifndef __OPKELE_AX_H | 1 | #ifndef __OPKELE_AX_H |
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 | ||
11 | namespace opkele { | 11 | namespace 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 | ||
28 | /** | 28 | /** |
29 | * Consumer constructor. | 29 | * Consumer constructor. |
30 | */ | 30 | */ |
31 | ax_t() : alias_count(0) { } | 31 | ax_t() : alias_count(0) { } |
@@ -67,18 +67,18 @@ namespace opkele { | |||
67 | protected: | 67 | protected: |
68 | /** Stores attributes to request fetching during checkid_setup. */ | 68 | /** Stores attributes to request fetching during checkid_setup. */ |
69 | struct ax_attr_t { | 69 | struct ax_attr_t { |
70 | std::string uri; | 70 | std::string uri; |
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 | ||