25
36
/* Hard-code the method and mechanism names. If they disagree
26
37
* with AgAuthData then hopefully the signon process will fail
27
38
* with a suitable error message. */
29
40
auth_session.state_changed.connect ((session, state, msg) => {message (msg);});
30
41
var session_data = yield auth_session.process_async (auth_data.get_login_parameters (source), "", cancellable);
31
42
var secret = session_data.lookup_value ("AccessToken", VariantType.STRING);