summaryrefslogtreecommitdiff
path: root/module/mod_auth_singleid.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-07-07 20:05:29 +0000
committerStef Walter <stef@memberwebs.com>2009-07-07 20:05:29 +0000
commit2989ee8b72ddb3995e5a4686c988385d05493365 (patch)
tree566819988818d2478a556394d2a7243d8f1a8b1f /module/mod_auth_singleid.h
parent2622d0eb7d32ae035d9c04d92de4e61588b1950e (diff)
Implement simple AX attribute exchange.
* Does not yet handle setting attributes from the cookie.
Diffstat (limited to 'module/mod_auth_singleid.h')
-rw-r--r--module/mod_auth_singleid.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/module/mod_auth_singleid.h b/module/mod_auth_singleid.h
index 17e1f22..a81652d 100644
--- a/module/mod_auth_singleid.h
+++ b/module/mod_auth_singleid.h
@@ -8,6 +8,14 @@
extern "C" {
#endif
+typedef struct sid_attribute {
+ const char *url;
+ const char *alias;
+ int required;
+ int count;
+ struct sid_attribute *next;
+} sid_attribute_t;
+
void sid_shared_lock (void);
void sid_shared_unlock (void);
@@ -32,6 +40,10 @@ void sid_request_respond (sid_request_t *req,
void sid_request_authenticated (sid_request_t *req,
const char *identifier);
+void sid_request_attribute_values (sid_request_t *req,
+ sid_attribute_t *attr,
+ const char **values);
+
/* -----------------------------------------------------------------------------------
* STORAGE: Actually, communications white-board between processes/threads.
*/
@@ -75,8 +87,8 @@ void sid_storage_invalidate_assoc (sid_storage_t *storage,
void sid_consumer_authenticate (sid_request_t *req,
sid_storage_t *store,
const char *trust_root,
- const char *identity);
-
+ const char *identity,
+ sid_attribute_t *attributes);
#ifdef __cplusplus
} /* extern "C" */