public IToken CreateRequestToken(IOAuthContext context)
    {
      var token = new RequestToken
                    {
                      ConsumerKey = context.ConsumerKey,
                      Realm = context.Realm,
                      Token = Guid.NewGuid().ToString(),
                      TokenSecret = Guid.NewGuid().ToString(),
                      AccessDenied = true,
        };

      _repository.SaveRequestToken(token);

      return token;
    }
Ejemplo n.º 2
0
 public void SaveRequestToken(RequestToken token)
 {
   _requestTokens[token.Token] = token;
 }