diff options
-rw-r--r-- | docs/reference/lasso-sections.txt | 178 | ||||
-rw-r--r-- | docs/reference/tmpl/login.sgml | 230 | ||||
-rw-r--r-- | docs/reference/tmpl/profile.sgml | 152 | ||||
-rw-r--r-- | lasso/id-ff/login.c | 41 | ||||
-rw-r--r-- | lasso/id-ff/login.h | 1 | ||||
-rw-r--r-- | lasso/id-ff/profile.c | 92 | ||||
-rw-r--r-- | lasso/id-ff/profile.h | 20 | ||||
-rw-r--r-- | lasso/id-ff/server.c | 4 |
8 files changed, 554 insertions, 164 deletions
diff --git a/docs/reference/lasso-sections.txt b/docs/reference/lasso-sections.txt index 0d526f75..afdd4c7d 100644 --- a/docs/reference/lasso-sections.txt +++ b/docs/reference/lasso-sections.txt @@ -51,6 +51,93 @@ LASSO_SERVER_GET_CLASS </SECTION> <SECTION> +<FILE>profile</FILE> +<TITLE>LassoProfile</TITLE> +lassoMessageType +lassoRequestType +LassoProfile +lasso_profile_get_identity +lasso_profile_get_session +lasso_profile_is_identity_dirty +lasso_profile_is_session_dirty +lasso_profile_set_identity_from_dump +lasso_profile_set_response_status +lasso_profile_set_session_from_dump +lasso_profile_get_request_type_from_soap_msg +lasso_profile_is_liberty_query +<SUBSECTION Standard> +LASSO_PROFILE +LASSO_IS_PROFILE +LASSO_TYPE_PROFILE +lasso_profile_get_type +LASSO_PROFILE_CLASS +LASSO_IS_PROFILE_CLASS +LASSO_PROFILE_GET_CLASS +</SECTION> + +<SECTION> +<FILE>login</FILE> +<TITLE>LassoLogin</TITLE> +LassoLogin +lassoLoginProtocolProfile +lasso_login_new +lasso_login_destroy +lasso_login_dump +lasso_login_new_from_dump +lasso_login_accept_sso +lasso_login_build_artifact_msg +lasso_login_build_assertion +lasso_login_build_authn_request_msg +lasso_login_build_authn_response_msg +lasso_login_build_request_msg +lasso_login_build_response_msg +lasso_login_init_authn_request +lasso_login_init_request +lasso_login_must_ask_for_consent +lasso_login_must_authenticate +lasso_login_process_authn_request_msg +lasso_login_process_authn_response_msg +lasso_login_process_request_msg +lasso_login_process_response_msg +lasso_login_validate_request_msg +<SUBSECTION Standard> +LASSO_LOGIN +LASSO_IS_LOGIN +LASSO_TYPE_LOGIN +lasso_login_get_type +LASSO_LOGIN_CLASS +LASSO_IS_LOGIN_CLASS +LASSO_LOGIN_GET_CLASS +</SECTION> + +<SECTION> +<FILE>logout</FILE> +<TITLE>LassoLogout</TITLE> +LassoLogout +LassoLogoutClass +lasso_logout_new +lasso_logout_new_from_dump +lasso_logout_build_request_msg +lasso_logout_build_response_msg +lasso_logout_destroy +lasso_logout_dump +lasso_logout_get_next_providerID +lasso_logout_init_request +lasso_logout_process_request_msg +lasso_logout_process_response_msg +lasso_logout_reset_providerID_index +lasso_logout_validate_request +<SUBSECTION Standard> +LASSO_LOGOUT +LASSO_IS_LOGOUT +LASSO_TYPE_LOGOUT +lasso_logout_get_type +LASSO_LOGOUT_CLASS +LASSO_IS_LOGOUT_CLASS +LASSO_LOGOUT_GET_CLASS +</SECTION> + +<SECTION> <FILE>lib_assertion</FILE> <TITLE>LassoLibAssertion</TITLE> LassoLibAssertion @@ -1073,97 +1160,6 @@ LASSO_IDENTITY_GET_CLASS </SECTION> <SECTION> -<FILE>login</FILE> -lassoLoginProtocolProfile -<TITLE>LassoLogin</TITLE> -LassoLogin -LassoLoginClass -lasso_login_new -lasso_login_new_from_dump -lasso_login_accept_sso -lasso_login_build_artifact_msg -lasso_login_build_authn_request_msg -lasso_login_build_authn_response_msg -lasso_login_build_request_msg -lasso_login_build_response_msg -lasso_login_destroy -lasso_login_dump -lasso_login_init_authn_request -lasso_login_init_request -lasso_login_must_authenticate -lasso_login_process_authn_request_msg -lasso_login_process_authn_response_msg -lasso_login_process_request_msg -lasso_login_process_response_msg -<SUBSECTION Standard> -LASSO_LOGIN -LASSO_IS_LOGIN -LASSO_TYPE_LOGIN -lasso_login_get_type -LASSO_LOGIN_CLASS -LASSO_IS_LOGIN_CLASS -LASSO_LOGIN_GET_CLASS -</SECTION> - -<SECTION> -<FILE>logout</FILE> -<TITLE>LassoLogout</TITLE> -LassoLogout -LassoLogoutClass -lasso_logout_new -lasso_logout_new_from_dump -lasso_logout_build_request_msg -lasso_logout_build_response_msg -lasso_logout_destroy -lasso_logout_dump -lasso_logout_get_next_providerID -lasso_logout_init_request -lasso_logout_process_request_msg -lasso_logout_process_response_msg -lasso_logout_reset_providerID_index -lasso_logout_validate_request -<SUBSECTION Standard> -LASSO_LOGOUT -LASSO_IS_LOGOUT -LASSO_TYPE_LOGOUT -lasso_logout_get_type -LASSO_LOGOUT_CLASS -LASSO_IS_LOGOUT_CLASS -LASSO_LOGOUT_GET_CLASS -</SECTION> - -<SECTION> -<FILE>profile</FILE> -LassoProfilePrivate -lassoProviderType -lassoMessageType -lasso_profile_get_request_type_from_soap_msg -<TITLE>LassoProfile</TITLE> -LassoProfile -LassoProfileClass -lasso_profile_new -lasso_profile_dump -lasso_profile_get_identity -lasso_profile_get_session -lasso_profile_is_identity_dirty -lasso_profile_is_session_dirty -lasso_profile_set_identity -lasso_profile_set_identity_from_dump -lasso_profile_set_session -lasso_profile_set_session_from_dump -lasso_profile_set_remote_providerID -lasso_profile_set_response_status -<SUBSECTION Standard> -LASSO_PROFILE -LASSO_IS_PROFILE -LASSO_TYPE_PROFILE -lasso_profile_get_type -LASSO_PROFILE_CLASS -LASSO_IS_PROFILE_CLASS -LASSO_PROFILE_GET_CLASS -</SECTION> - -<SECTION> <FILE>session</FILE> LassoSessionPrivate <TITLE>LassoSession</TITLE> diff --git a/docs/reference/tmpl/login.sgml b/docs/reference/tmpl/login.sgml new file mode 100644 index 00000000..6305d091 --- /dev/null +++ b/docs/reference/tmpl/login.sgml @@ -0,0 +1,230 @@ +<!-- ##### SECTION Title ##### --> +LassoLogin + +<!-- ##### SECTION Short_Description ##### --> +Single Sign-On and Federation Profile + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### STRUCT LassoLogin ##### --> +<para> + +</para> + +@protocolProfile: +@assertionArtifact: +@assertion: + +<!-- ##### ENUM lassoLoginProtocolProfile ##### --> +<para> + +</para> + +@LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_ART: +@LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_POST: + +<!-- ##### FUNCTION lasso_login_new ##### --> +<para> + +</para> + +@server: +@Returns: + + +<!-- ##### FUNCTION lasso_login_destroy ##### --> +<para> + +</para> + +@login: + + +<!-- ##### FUNCTION lasso_login_dump ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_new_from_dump ##### --> +<para> + +</para> + +@server: +@dump: +@Returns: + + +<!-- ##### FUNCTION lasso_login_accept_sso ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_artifact_msg ##### --> +<para> + +</para> + +@login: +@http_method: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_assertion ##### --> +<para> + +</para> + +@login: +@authenticationMethod: +@authenticationInstant: +@reauthenticateOnOrAfter: +@notBefore: +@notOnOrAfter: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_authn_request_msg ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_authn_response_msg ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_request_msg ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_build_response_msg ##### --> +<para> + +</para> + +@login: +@remote_providerID: +@Returns: + + +<!-- ##### FUNCTION lasso_login_init_authn_request ##### --> +<para> + +</para> + +@login: +@remote_providerID: +@http_method: +@Returns: + + +<!-- ##### FUNCTION lasso_login_init_request ##### --> +<para> + +</para> + +@login: +@response_msg: +@response_http_method: +@Returns: + + +<!-- ##### FUNCTION lasso_login_must_ask_for_consent ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_must_authenticate ##### --> +<para> + +</para> + +@login: +@Returns: + + +<!-- ##### FUNCTION lasso_login_process_authn_request_msg ##### --> +<para> + +</para> + +@login: +@authn_request_msg: +@Returns: + + +<!-- ##### FUNCTION lasso_login_process_authn_response_msg ##### --> +<para> + +</para> + +@login: +@authn_response_msg: +@Returns: + + +<!-- ##### FUNCTION lasso_login_process_request_msg ##### --> +<para> + +</para> + +@login: +@request_msg: +@Returns: + + +<!-- ##### FUNCTION lasso_login_process_response_msg ##### --> +<para> + +</para> + +@login: +@response_msg: +@Returns: + + +<!-- ##### FUNCTION lasso_login_validate_request_msg ##### --> +<para> + +</para> + +@login: +@authentication_result: +@is_consent_obtained: +@Returns: + + diff --git a/docs/reference/tmpl/profile.sgml b/docs/reference/tmpl/profile.sgml new file mode 100644 index 00000000..6ab97988 --- /dev/null +++ b/docs/reference/tmpl/profile.sgml @@ -0,0 +1,152 @@ +<!-- ##### SECTION Title ##### --> +LassoProfile + +<!-- ##### SECTION Short_Description ##### --> +Base class for all ID-FF profiles + +<!-- ##### SECTION Long_Description ##### --> +<para> + +</para> + +<!-- ##### SECTION See_Also ##### --> +<para> + +</para> + +<!-- ##### ENUM lassoMessageType ##### --> +<para> + +</para> + +@LASSO_MESSAGE_TYPE_NONE: +@LASSO_MESSAGE_TYPE_AUTHN_REQUEST: +@LASSO_MESSAGE_TYPE_AUTHN_RESPONSE: +@LASSO_MESSAGE_TYPE_REQUEST: +@LASSO_MESSAGE_TYPE_RESPONSE: +@LASSO_MESSAGE_TYPE_ARTIFACT: + +<!-- ##### ENUM lassoRequestType ##### --> +<para> + +</para> + +@LASSO_REQUEST_TYPE_INVALID: +@LASSO_REQUEST_TYPE_LOGIN: +@LASSO_REQUEST_TYPE_LOGOUT: +@LASSO_REQUEST_TYPE_DEFEDERATION: +@LASSO_REQUEST_TYPE_NAME_REGISTRATION: +@LASSO_REQUEST_TYPE_NAME_IDENTIFIER_MAPPING: +@LASSO_REQUEST_TYPE_LECP: + +<!-- ##### STRUCT LassoProfile ##### --> +<para> + +</para> + +@server: +@request: +@response: +@nameIdentifier: +@remote_providerID: +@msg_url: +@msg_body: +@msg_relayState: + +<!-- ##### FUNCTION lasso_profile_get_identity ##### --> +<para> + +</para> + +@profile: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_get_session ##### --> +<para> + +</para> + +@profile: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_is_identity_dirty ##### --> +<para> + +</para> + +@profile: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_is_session_dirty ##### --> +<para> + +</para> + +@profile: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_set_identity_from_dump ##### --> +<para> + +</para> + +@profile: +@dump: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_set_response_status ##### --> +<para> + +</para> + +@profile: +@statusCodeValue: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_set_session_from_dump ##### --> +<para> + +</para> + +@profile: +@dump: +@Returns: +<!-- # Unused Parameters # --> +@ctx: + + +<!-- ##### FUNCTION lasso_profile_get_request_type_from_soap_msg ##### --> +<para> + +</para> + +@soap: +@Returns: + + +<!-- ##### FUNCTION lasso_profile_is_liberty_query ##### --> +<para> + +</para> + +@query: +@Returns: + + diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index 58619d96..df7a9c52 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -43,22 +43,22 @@ struct _LassoLoginPrivate /** * lasso_login_build_assertion: - * @login: a Login + * @login: a #LassoLogin * @authenticationMethod: the authentication method. * @authenticationInstant: the time at which the authentication took place or NULL. * @reauthenticateOnOrAfter: the time at, or after which the service provider - * reauthenticates the Principal with the identity provider or NULL. + * reauthenticates the Principal with the identity provider or NULL. * @notBefore: the earliest time instant at which the assertion is valid or NULL. * @notOnOrAfter: the time instant at which the assertion has expired or NULL. * * Builds an assertion. * Assertion is stored in session property. If session property is NULL, a new - * session is build before. + * session is built before. * The NameIdentifier of the assertion is stored into nameIdentifier proprerty. * If @authenticationInstant is NULL, the current time will be set. * Time values must be encoded in UTC. * - * Return value: 0 on success or a negative value otherwise. + * Return value: 0 on success; or a negative value otherwise. **/ int lasso_login_build_assertion(LassoLogin *login, @@ -142,7 +142,7 @@ lasso_login_build_assertion(LassoLogin *login, /** * lasso_login_must_ask_for_consent_private: - * @login: a LassoLogin + * @login: a #LassoLogin * * Evaluates if it is necessary to ask the consent of the Principal. * This method doesn't take the isPassive value into account. @@ -929,9 +929,9 @@ lasso_login_init_idp_initiated_authn_request(LassoLogin *login, /** * lasso_login_must_ask_for_consent: - * @login: a LassoLogin + * @login: a #LassoLogin * - * Evaluates if a consent must be ask to the Principal to federate him. + * Evaluates if consent must be asked to the Principal to federate him. * * Return value: TRUE or FALSE **/ @@ -948,7 +948,7 @@ lasso_login_must_ask_for_consent(LassoLogin *login) /** * lasso_login_must_authenticate: - * @login: a LassoLogin + * @login: a #LassoLogin * * Verifies if the user must be authenticated or not. * @@ -1297,6 +1297,15 @@ lasso_login_get_type() return this_type; } +/** + * lasso_login_new + * @server: a #LassoServer + * + * Creates a new #LassoLogin. + * + * Return value: a newly created #LassoLogin object; or NULL if an error + * occured + **/ LassoLogin* lasso_login_new(LassoServer *server) { @@ -1310,6 +1319,14 @@ lasso_login_new(LassoServer *server) return login; } +/** + * lasso_login_new_from_dump: + * @dump: XML login dump + * + * Restores the @dump to a new #LassoLogin. + * + * Return value: a newly created #LassoLogin; or NULL if an error occured + **/ LassoLogin* lasso_login_new_from_dump(LassoServer *server, const gchar *dump) { @@ -1324,6 +1341,14 @@ lasso_login_new_from_dump(LassoServer *server, const gchar *dump) return login; } +/** + * lasso_login_dump: + * @login: a #LassoLogin + * + * Dumps @login content to an XML string. + * + * Return value: the dump string. It must be freed by the caller. + **/ gchar* lasso_login_dump(LassoLogin *login) { diff --git a/lasso/id-ff/login.h b/lasso/id-ff/login.h index da2f988a..e3d25aa9 100644 --- a/lasso/id-ff/login.h +++ b/lasso/id-ff/login.h @@ -59,6 +59,7 @@ typedef enum { struct _LassoLogin { LassoProfile parent; + /*< public >*/ lassoLoginProtocolProfile protocolProfile; gchar *assertionArtifact; LassoSamlAssertion *assertion; diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c index d5ecd2f4..49f8c957 100644 --- a/lasso/id-ff/profile.c +++ b/lasso/id-ff/profile.c @@ -43,22 +43,24 @@ struct _LassoProfilePrivate /*****************************************************************************/ LassoSamlNameIdentifier* -lasso_profile_get_nameIdentifier(LassoProfile *ctx) +lasso_profile_get_nameIdentifier(LassoProfile *profile) { LassoProvider *remote_provider; LassoFederation *federation; - g_return_val_if_fail(LASSO_IS_PROFILE(ctx), NULL); + g_return_val_if_fail(LASSO_IS_PROFILE(profile), NULL); - g_return_val_if_fail(LASSO_IS_SERVER(ctx->server), NULL); - g_return_val_if_fail(LASSO_IS_IDENTITY(ctx->identity), NULL); - g_return_val_if_fail(ctx->remote_providerID != NULL, NULL); + g_return_val_if_fail(LASSO_IS_SERVER(profile->server), NULL); + g_return_val_if_fail(LASSO_IS_IDENTITY(profile->identity), NULL); + g_return_val_if_fail(profile->remote_providerID != NULL, NULL); - remote_provider = g_hash_table_lookup(ctx->server->providers, ctx->remote_providerID); + remote_provider = g_hash_table_lookup( + profile->server->providers, profile->remote_providerID); if (remote_provider == NULL) return NULL; - federation = g_hash_table_lookup(ctx->identity->federations, ctx->remote_providerID); + federation = g_hash_table_lookup( + profile->identity->federations, profile->remote_providerID); if (federation == NULL) return NULL; @@ -77,6 +79,14 @@ lasso_profile_get_nameIdentifier(LassoProfile *ctx) return NULL; } +/** + * lasso_profile_get_request_type_from_soap_msg: + * @soap: the SOAP message + * + * Looks up and return the type of the request in a SOAP message. + * + * Return value: the type of request + **/ lassoRequestType lasso_profile_get_request_type_from_soap_msg(const gchar *soap) { @@ -120,13 +130,13 @@ lasso_profile_get_request_type_from_soap_msg(const gchar *soap) } /** - * lasso_profile_is_liberty_query + * lasso_profile_is_liberty_query: * @query: HTTP query string * * Tests the query string to know if the URL is called as the result of a * Liberty redirect (action initiated elsewhere) or not. * - * Returns: TRUE if lasso query, FALSE otherwise + * Return value: TRUE if lasso query, FALSE otherwise **/ gboolean lasso_profile_is_liberty_query(const gchar *query) @@ -157,35 +167,35 @@ lasso_profile_is_liberty_query(const gchar *query) LassoIdentity* -lasso_profile_get_identity(LassoProfile *ctx) +lasso_profile_get_identity(LassoProfile *profile) { - if (ctx->identity && g_hash_table_size(ctx->identity->federations)) - return ctx->identity; + if (profile->identity && g_hash_table_size(profile->identity->federations)) + return profile->identity; return NULL; } LassoSession* -lasso_profile_get_session(LassoProfile *ctx) +lasso_profile_get_session(LassoProfile *profile) { - if (ctx->session && g_hash_table_size(ctx->session->assertions)) - return ctx->session; + if (profile->session && g_hash_table_size(profile->session->assertions)) + return profile->session; return NULL; } gboolean -lasso_profile_is_identity_dirty(LassoProfile *ctx) +lasso_profile_is_identity_dirty(LassoProfile *profile) { - return (ctx->identity && ctx->identity->is_dirty); + return (profile->identity && profile->identity->is_dirty); } gboolean -lasso_profile_is_session_dirty(LassoProfile *ctx) +lasso_profile_is_session_dirty(LassoProfile *profile) { - return (ctx->session && ctx->session->is_dirty); + return (profile->session && profile->session->is_dirty); } void -lasso_profile_set_response_status(LassoProfile *ctx, const char *statusCodeValue) +lasso_profile_set_response_status(LassoProfile *profile, const char *statusCodeValue) { LassoSamlpStatus *status; @@ -213,14 +223,14 @@ lasso_profile_set_response_status(LassoProfile *ctx, const char *statusCodeValue status->StatusCode->StatusCode->Value = g_strdup(statusCodeValue); } - if (LASSO_IS_SAMLP_RESPONSE(ctx->response)) { - LassoSamlpResponse *response = LASSO_SAMLP_RESPONSE(ctx->response); + if (LASSO_IS_SAMLP_RESPONSE(profile->response)) { + LassoSamlpResponse *response = LASSO_SAMLP_RESPONSE(profile->response); if (response->Status) lasso_node_destroy(LASSO_NODE(response->Status)); response->Status = status; return; } - if (LASSO_IS_LIB_STATUS_RESPONSE(ctx->response)) { - LassoLibStatusResponse *response = LASSO_LIB_STATUS_RESPONSE(ctx->response); + if (LASSO_IS_LIB_STATUS_RESPONSE(profile->response)) { + LassoLibStatusResponse *response = LASSO_LIB_STATUS_RESPONSE(profile->response); if (response->Status) lasso_node_destroy(LASSO_NODE(response->Status)); response->Status = status; return; @@ -231,26 +241,26 @@ lasso_profile_set_response_status(LassoProfile *ctx, const char *statusCodeValue } gint -lasso_profile_set_identity_from_dump(LassoProfile *ctx, const gchar *dump) +lasso_profile_set_identity_from_dump(LassoProfile *profile, const gchar *dump) { g_return_val_if_fail(dump != NULL, LASSO_PARAM_ERROR_INVALID_VALUE); - ctx->identity = lasso_identity_new_from_dump(dump); - if (ctx->identity == NULL) + profile->identity = lasso_identity_new_from_dump(dump); + if (profile->identity == NULL) return critical_error(LASSO_PROFILE_ERROR_BAD_IDENTITY_DUMP); return 0; } gint -lasso_profile_set_session_from_dump(LassoProfile *ctx, const gchar *dump) +lasso_profile_set_session_from_dump(LassoProfile *profile, const gchar *dump) { g_return_val_if_fail(dump != NULL, LASSO_PARAM_ERROR_INVALID_VALUE); - ctx->session = lasso_session_new_from_dump(dump); - if (ctx->session == NULL) + profile->session = lasso_session_new_from_dump(dump); + if (profile->session == NULL) return critical_error(LASSO_PROFILE_ERROR_BAD_SESSION_DUMP); - ctx->session->is_dirty = FALSE; + profile->session->is_dirty = FALSE; return 0; } @@ -377,23 +387,3 @@ lasso_profile_get_type() return this_type; } -LassoProfile* -lasso_profile_new(LassoServer *server, LassoIdentity *identity, LassoSession *session) -{ - LassoProfile *profile = NULL; - - g_return_val_if_fail(server != NULL, NULL); - - profile = g_object_new(LASSO_TYPE_PROFILE, NULL); - profile->identity = identity; - profile->session = session; - - return profile; -} - -gchar* -lasso_profile_dump(LassoProfile *profile) -{ - return lasso_node_dump(LASSO_NODE(profile), NULL, 1); -} - diff --git a/lasso/id-ff/profile.h b/lasso/id-ff/profile.h index f42c8aac..c759f385 100644 --- a/lasso/id-ff/profile.h +++ b/lasso/id-ff/profile.h @@ -109,21 +109,17 @@ LASSO_EXPORT gboolean lasso_profile_is_liberty_query(const gchar *query); LASSO_EXPORT GType lasso_profile_get_type(void); -LASSO_EXPORT LassoProfile* lasso_profile_new(LassoServer *server, - LassoIdentity *identity, LassoSession *session); - -LASSO_EXPORT gchar* lasso_profile_dump(LassoProfile *ctx); -LASSO_EXPORT LassoIdentity* lasso_profile_get_identity(LassoProfile *ctx); -LASSO_EXPORT LassoSession* lasso_profile_get_session(LassoProfile *ctx); -LASSO_EXPORT gboolean lasso_profile_is_identity_dirty(LassoProfile *ctx); -LASSO_EXPORT gboolean lasso_profile_is_session_dirty(LassoProfile *ctx); +LASSO_EXPORT LassoIdentity* lasso_profile_get_identity(LassoProfile *profile); +LASSO_EXPORT LassoSession* lasso_profile_get_session(LassoProfile *profile); +LASSO_EXPORT gboolean lasso_profile_is_identity_dirty(LassoProfile *profile); +LASSO_EXPORT gboolean lasso_profile_is_session_dirty(LassoProfile *profile); LASSO_EXPORT void lasso_profile_set_response_status( - LassoProfile *ctx, const gchar *statusCodeValue); + LassoProfile *profile, const gchar *statusCodeValue); -LASSO_EXPORT gint lasso_profile_set_identity_from_dump(LassoProfile *ctx, const gchar *dump); -LASSO_EXPORT gint lasso_profile_set_session_from_dump(LassoProfile *ctx, const gchar *dump); -LASSO_EXPORT LassoSamlNameIdentifier* lasso_profile_get_nameIdentifier(LassoProfile *ctx); +LASSO_EXPORT gint lasso_profile_set_identity_from_dump(LassoProfile *profile, const gchar *dump); +LASSO_EXPORT gint lasso_profile_set_session_from_dump(LassoProfile *profile, const gchar *dump); +LASSO_EXPORT LassoSamlNameIdentifier* lasso_profile_get_nameIdentifier(LassoProfile *profile); #ifdef __cplusplus } diff --git a/lasso/id-ff/server.c b/lasso/id-ff/server.c index 55520d02..d924dbd4 100644 --- a/lasso/id-ff/server.c +++ b/lasso/id-ff/server.c @@ -428,7 +428,7 @@ lasso_server_new(const gchar *metadata, } /** - * lasso_server_new_from_dump + * lasso_server_new_from_dump: * @dump: XML server dump * * Restores the @dump to a new #LassoServer. @@ -454,7 +454,7 @@ lasso_server_new_from_dump(const gchar *dump) * lasso_server_dump: * @server: a #LassoServer * - * Dumps server content to an XML string. + * Dumps @server content to an XML string. * * Return value: the dump string. It must be freed by the caller. **/ |