public AuthenticationInfo Authenticate(string oauthToken, string oauthTokenSecret, string verifier)
        {
            var accessToken = new Flickr().OAuthGetAccessToken(oauthToken, oauthTokenSecret, verifier);
            AuthenticationInfo authenticationInfo = accessToken.AsAuthenticationInfo();

            _authenticationStorage.SetAuthenticationInfo(authenticationInfo);

            return(authenticationInfo);
        }
Пример #2
0
        public AuthenticationInfo Authenticate(object parameter)
        {
            var  frob = (string)parameter;
            Auth auth = new Flickr().AuthGetToken(frob);
            var  authenticationInfo = auth.AsAuthenticationInfo();

            _authenticationStorage.SetAuthenticationInfo(authenticationInfo);

            return(authenticationInfo);
        }