예제 #1
0
        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;
        }
        public AuthenticationInfo Authenticate(object parameter)
        {
            var frob = (string) parameter;
            Auth auth = new Flickr().AuthGetToken(frob);
            var authenticationInfo = auth.AsAuthenticationInfo();
            _authenticationStorage.SetAuthenticationInfo(authenticationInfo);

            return authenticationInfo;
        }