1LWP::Authen::Gooddata(3Upsme)r Contributed Perl DocumentaLtWiPo:n:Authen::Gooddata(3pm)
2
3
4
6 LWP::Authen::Gooddata - Handle GoodData HTTP authentication mechanism
7
9 use WWW::GoodData::Agent;
10 my $agent = new WWW::GoodData::Agent ('https://secure.gooddata.com/gdc');
11 $agent->post ('/gdc/account/login', ...);
12 # The authentication cookie gets obtained transparently here
13 $agent->get ('/gdc/md');
14
16 LWP::Authen::Gooddata gets loaded and invoked by a LWP::UserAgent, or
17 its subclass such as WWW::GoodData::Agent, upon reciept of 401
18 "Unauthorized" response from the server which indicates use of
19 "GoodData" authentization mechanism in the "WWW-Authenticate" header.
20
21 If the challenge indicates the temporary authentization cookie needs to
22 be refreshed it does so transparently and reissues the request,
23 otherwise dies with appropriate explanation.
24
26 authenticate [PARAMS]
27 Called by LWP::UserAgent internally.
28
30 • <http://developer.gooddata.com/api/auth.html> -- Specification of
31 the GoodData authentization mechanism
32
33 • LWP::UserAgent -- The Perl HTTP agent
34
36 GoodData authentization mechanism is not an internet standard and thus
37 puts an interoperability barrier. Unfortunatelly, no standard and
38 widely supported mechanism provides comparable benefits (mostly server-
39 side performance coupled with sanity of implementation). Probably an
40 alternative mechanism should be provided (Basic or Digest, which are
41 both widely available) for the client to negotiate.
42
44 Copyright 2011, 2012, 2013 Lubomir Rintel
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself.
48
50 Lubomir Rintel "lkundrak@v3.sk"
51
52
53
54perl v5.38.0 2023-07-21 LWP::Authen::Gooddata(3pm)