~ubuntu-branches/ubuntu/hardy/lasso/hardy

« back to all changes in this revision

Viewing changes to docs/lasso-book/writing-a-c-sp.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 21:35:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731213526-oc6jw5mprcd5tjyy
Tags: 2.0.0-1ubuntu1
* Merge from debian unstable. Remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
* debian/rules:
  + Add CC=gcc-4.2 to the configure call else configure won't find jni.h
    from libgcj8-dev.
* configure{,.ac}:
  + Add missing quotes around the value for PHP[45]_LIBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
:author: Frederic Peters
6
6
:contact: fpeters@entrouvert.com
7
 
:date: $Date: 2006/03/19 19:40:22 $
8
 
:revision: $Revision: 1.39 $
 
7
:date: $Date: 2006/10/31 10:01:21 $
 
8
:revision: $Revision: 1.42 $
9
9
:copyright: Copyright © 2004, 2005, 2006 Entr'ouvert
10
10
 
11
11
.. contents:: Table of Contents
86
86
 
87
87
  LassoServer *server;
88
88
  server = lasso_server_new("sp-metadata.xml",
89
 
                "sp-private-key.pem", "sp-crt.pem",
90
 
                LASSO_SIGNATURE_METHOD_RSA_SHA1);
 
89
                "sp-private-key.pem", NULL, "sp-crt.pem");
 
90
 
91
91
  lasso_server_add_provider(server, LASSO_PROVIDER_ROLE_IDP,
92
92
                "idp-metadata.xml", "idp-public-key.pem", "ca-crt.pem");
93
93
 
100
100
- ``idp-public-key.pem`` is the identity provider public key; used to verify
101
101
  signature in documents sent by the identity provider
102
102
- ``ca-crt.pem`` is the certificate of the certification authority used by the
103
 
  identity provider.
 
103
  identity provider
 
104
- NULL, the third argument, would be used if the private key was protected by a
 
105
  password.
104
106
 
105
107
It is of course possible to have several calls so ``lasso_server_add_provider``
106
108
if there are more than one identity provider.
195
197
  LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request)->ForceAuthn = TRUE;
196
198
  LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request)->IsPassive = FALSE;
197
199
  LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request)->NameIDPolicy =
198
 
      strdup(LASSO_LIB_NAME_ID_POLICY_TYPE_FEDERATED);
 
200
      strdup(LASSO_LIB_NAMEID_POLICY_TYPE_FEDERATED);
199
201
  LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request)->consent =
200
202
      strdup(LASSO_LIB_CONSENT_OBTAINED);
201
203
  lasso_login_build_authn_request_msg(login);