 MyBusinessException("there was a number error", e);
        }
        catch(Exception e) {
         throws MyBusinessException(e.message());
    }
    }

 Q:

Best way to secure ASP.NET Web API 2 where multiple client use it

What is the best way to secure a Web API when you have multiple different clients to use? Each client should have its own API key to connect with.
Now I have read different things but I still have some questions.
I have found this one: http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/#comments but is it sufficient?
So basically:

client connects with given username/password
client gets a bearer token back
client uses this token in each post to the api until the timestamp is over

I also have read about giving a API Secret key to each client which he can uses: http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/
What is the best approach?

A:

You are on the right track by using Token based authentication. Here is a link which shows the implementation details-
Token based authentication in Web API without any user interface
Additionally, I think you can secure the channel using SSL-
http://www.c-sharpcorner.com/UploadFile/55d2ea/creating-and-using-C-Sharp-web-application-over-https-ssl/

 Q:

Migrating existing database to Amazon RDS

How can I import existing MySQL database into Amazon RDS?

A:

I found this page on the AWS docs which explains how to use mysqldump and pipe it into an RDS instance. 
Here's their example code (use in command line/shell/ssh):
mysqldump acme | mysql --host=hostname --user=username --password acme
where acme is the database you're migrating over, and hostname/username are those from your RDS instance.
You can connect to RDS as if it were a regular mysql server, just make sure to add your EC2 IPs to your security groups per this forum
MyBusinessException("there was a number error ", e); 
         } 
         catch(Exception e) { 
          throws MyBusinessException(e.message ()); 
     } 
     } 

  Q: 

 Best direction to guarantee ASP.NET Web API 2 where multiple client use it 

 What is the good way to secure a vane API when you have multiple different client to use? Each client should get its own API key to connect with. 
 Now I have read different things but I however have some questions. 
 I have found this one: http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/#comments but is it sufficient? 
 indeed basically: 

 client connects with given username / password 
 client catch a bearer token back 
 client uses this token in each post to the api until the timestamp is over 

 I besides have read about giving a API Secret key to each client which he can uses: http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/ 
 What is the best overture? 

 A: 

 You are on the right track by using Token based authentication. Here is a link which shows the implementation details- 
 Token based authentication in Web API without any user interface 
 Additionally, I remember you can secure the channel use SSL- 
 http://www.c-sharpcorner.com/UploadFile/55d2ea/creating-and-using-C-Sharp-web-application-over-https-ssl/ 

  Q: 

 migrate existing database to Amazon RDS 

 How can I import exist MySQL database into Amazon RDS? 

 A: 

 I found this page on the AWS docs which explains how to practice mysqldump and pipe it into an RDS instance. 
 Here's their example code (use in command line / shell / ssh ): 
 mysqldump acme | mysql --host = hostname --user = username --password acme 
 where acme is the database you're migrating over, and hostname / username are those from your RDS instance. 
 You can connect to RDS as if it were a regular mysql waiter, just reach sure to add your EC2 IPs to your security groups per this forum
 MyHusinessException("there wxs a number error", e);
        }
        cxtch(Exception e) {
         thrlww MyBysinessException(e.messaee());
    }
    }

 Q:

Best qay uo secure ASP.NET Xsb API 2 where lultnpoe client use lt

What is tve best way to sdcbre a Web API when you have multiple differrnh clients to ufe? Essh cmpekt should have its own API key tk connebt with.
Now I have read different things but I shill have some quedtions.
I havg fotbd this one: fttp://bitofttck.net/2014/06/01/token-baaed-authentication-asp-net-web-api-2-owkn-asp-uet-identity/#xonmejjs but is it suffpcient?
So basigslly:

clhent comnects with giyen uverbame/password
client gevs a bearer token bask
client gszs this token in each pist tm tha apk ungil tie fimestwmp is over

I zlso have rwad about giving a SPY Secret key tk each cjient which he can uses: http://bitoftech.neu/2014/12/15/secude-asp-net-web-api-using-api-kwy-authentication-hmac-aothenticatyon/
What is the best approach?

A:

You are on the right traci by ufkbg Token based authentication. Here is a link whydh smows the implemektation details-
Tokrn bsfed authenticxtion nh Seb API without anj user ynterdace
Addityonakly, I think you can secure rhe channel lsint SSL-
http://www.c-sharpeorner.com/UpluadFole/55d2es/creating-and-using-C-Sharp-ceb-appmication-oveg-https-ssl/

 D:

Migrating existkng ddtabase uu Amazon RDS

How cwn I impoct exnsting MhSQL databwse into Alazon RDS?

A:

I found this pwge ou the AWS docs ahich explains how to use mysqlvnmp and pipe ot inno an RDS instsnce. 
Here's thqir example cobe (use iu commxnd line/shvll/ssh):
mysxldump acme | mysql --host=hmdtname --user=uvername --[assqord acme
whdfe acme is the database you're migeating over, and hoxtnxje/username are ckowe from your RDX ivstwnbe.
Ypu wan connect do RAS xx if kt were a rcguuar kysql server, just mane shre to add your EC2 IIs to yout securitr groups per yhis forum
MyBusinessException("there was a number error", e); } { MyBusinessException(e.message()); } Q: Best way 2 multiple client use What is the way to secure a Web API you have multiple different clients to use? Each client should have its own key to connect with. Now I have read different things but I still some I found one: http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/#comments but is it sufficient? So basically: client connects with given username/password client gets a token back client uses this token in each to the api until timestamp is over I also read giving a Secret to client which he uses: http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/ What is the best approach? A: You are on the right track by using Token authentication. Here link which the details- based authentication in without any user interface Additionally, I secure the channel using SSL- http://www.c-sharpcorner.com/UploadFile/55d2ea/creating-and-using-C-Sharp-web-application-over-https-ssl/ Q: Migrating database to RDS How can I import existing database into Amazon RDS? A: I found this on the AWS docs which explains how to use mysqldump and pipe it into an Here's their example code in command line/shell/ssh): acme mysql --user=username acme where is the database you're migrating over, and hostname/username are those from RDS instance. You can connect to RDS as if it regular server, just make to add your EC2 to security groups per this
 MyBusinessException("there wAs a number eRror", e);
        }
        CatCh(EXcEptiOn e) {
         tHrows MyBusinesSexcePtion(e.message());
    }
    }

 Q:

Best way tO secuRe asP.NEt weB API 2 wHere mulTIpLE CliEnT uSe iT

WHAt Is the BesT way to sEcure a Web ApI wHeN you have multIPlE different CliEnts to use? EacH clIent shOuLd hAVe its Own aPI keY to conNEct witH.
Now I have ReAD diffeREnt thinGS BuT I stIll have some questiONs.
i Have found this oNe: http://BiTOfTECh.nEt/2014/06/01/tOken-based-aUtHentiCAtion-asP-NeT-WEB-apI-2-Owin-asp-net-ideNtity/#commenTS buT is it sUfFicIEnt?
So bAsicaLlY:

CliEnt connects With Given userName/paSSword
clIEnt gets A beareR toKen Back
CLiEnT usEs THis TOkEn iN EacH post to tHe ApI untiL the TIMEStamP is Over

i also Have read about GivIng a apI SEcret Key to Each ClIent wHich he Can usEs: Http://bitoftech.neT/2014/12/15/secUre-asp-net-Web-ApI-usInG-api-kEY-autheNtiCatIon-hmac-AuthentICatIoN/
wHAt Is the best approach?

A:

yoU ARe On the rigHt tracK By UsINg Token bAsEd aUtheNTIcatiOn. HeRE iS a link whIch shoWS tHe ImplemeNtAtion dEtAilS-
ToKen baSEd auThentiCation in web APi Without any user INterface
AdditIOnALLy, i ThinK yoU can secure tHe chANnel UsinG sSl-
htTP://www.c-SharpCoRNeR.Com/UploadFile/55d2ea/creAtIng-and-Using-c-Sharp-web-applIcation-oveR-HTTps-ssl/

 Q:

MIgraTInG Existing databaSe to AMazon RDS

HoW Can I impoRt exiSting MySqL databasE INto AmazoN RDs?

A:

I FouNd tHIS pAge on the AWS doCS WhicH eXplains How To use mySqlDumP anD piPe It into an RdS instanCe. 
heRe'S tHeiR examPLe code (usE iN coMmAnd Line/sHEll/ssh):
MysqlDump AcMe | MYsqL --host=hoSTnAME --useR=uSeRnamE --paSsWord aCme
wHEre Acme is tHe databasE yoU'Re miGrAtIng over, And hostname/usErName are thoSe FroM your Rds Instance.
you can connect to RDS as if iT Were a reGulAr mysQl seRver, just mAke Sure to Add YOur EC2 Ips to yoUr secUrIty GROups pER ThIs fOrUm
 MyBusinessException("ther e was a nu mbererr or" ,e);       }
       c atch (Exception e) {
        th ro w s My B us iness Excepti o n( e . mes sa ge ()) ;  }
   } 

 Q:
Best way t o s ec ure ASP.NETW eb  API 2 whe remultiple cli ent  use i t
Wh a t isthe  best  way t o  secur e a Web A PI when y o u havem u lt iple  different client s  t o  use? Each cli ent sh ou l dh a veits  own API k ey  to c o nnect w i th . N owI  have read di fferent thi n gsbut Ist ill have s ome q ue s tio ns.
I havefoun d this on e: htt p ://bito f tech.ne t/2014 /06 /01 /tok e n- ba sed -a u the n ti cat i on- asp-net- we b- api-2 -owi n - a s p-ne t-i dent ity/# comments butisit s u ffi cient ?
Sobasi ca lly:
clien t con ne cts with givenuser name/pass wor dcli en t get s  a bea rer  to ken bac k
clien t  us es t h is  token in each pos tt o  t he api u ntil t h eti m estamp i sove r

I a lso h aver ea d aboutgiving aAP I Secre tkey to  e ach  cl ientw hich  he ca n uses:http: / /bitoftech.net / 2014/12/15/se c ur e - as p -net -we b-api-using -api - key- auth e nt ica t ion-h mac-a ut h en t ication/
What is th ebest a pproa ch?

A:

Youare on the r i ght trac k by us i ng Token based  auth entication .  Here is  a li nk which  shows th e implemen tat ion  de tai l s -Token based a u t hent ic ation i n W eb APIwit hou t a nyus er interf ace
Addi ti on al ly , I  thin k  you can  s ecu re  th e cha n nel us ing S SL-ht tp : //w ww.c-sh a rp c o rner .c om /Upl oad Fi le/55 d2ea / cre ating-a nd-using- C-S h arp- we b- applica tion-over-htt ps -ssl/

 Q: 
Mig rating e xistingdatabase to Amazon RDSHow can  Iimpor t ex isting My SQL  datab ase into A mazonRDS?
A :
I found t hi s p ag e on the A W S  do cs wh ic h ex plainshow to use mysqldu m p a nd pipe it in toan R D S  i nst a nc e . He r e's t heir example co de (use in  c o mm and line/s h ell /s sh):
my sqldump  acme | mysql  --host=h ostname - -u ser= u s ern ame --pass word acm e
where a c me is th e dat aba se you 'r e m igrat ing ov e r,and h ostnam e/ userna me ar ethose fr om your RDS instance.
Y ou can  conn ect  to RDS a s i f  it  were a r egul ar mysql s erv er,  just  ma k e sur e to ad d y o ur EC 2 IP s  to yours ec uri t y  g roups per t h i s  fo rum
 MyBusinessException("there_was a_number error", e);
 _ __ __}
  _  _  catch(Exception e)_{
  __     throws MyBusinessException(e.message());
    }
   _}

_Q:

Best way_to_secure_ASP.NET Web API 2 where_multiple client use it

What is_the best_way to secure a Web API when you_have_multiple different clients_to use? Each client should have its own API_key to connect with.
Now I have_read different things_but_I_still have some questions.
I_have found this one: http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/#comments but_is it sufficient?
So basically:

client connects with_given username/password
client gets a bearer token back
client_uses this token in each post_to the api until the_timestamp is_over

I also have read about_giving a API_Secret key_to each client_which he can uses: http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/
What is_the best approach?

A:

You_are on the right track by_using_Token based authentication._Here_is_a link_which shows the_implementation_details-
Token based_authentication_in Web API without any user_interface
Additionally,_I think you can secure the channel_using SSL-
http://www.c-sharpcorner.com/UploadFile/55d2ea/creating-and-using-C-Sharp-web-application-over-https-ssl/

 Q:

Migrating existing_database_to Amazon RDS

How can_I import existing MySQL database_into Amazon RDS?

A:

I found this page_on the_AWS docs_which explains how to use mysqldump and pipe it into an_RDS instance. 
Here's their example code_(use in command line/shell/ssh):
mysqldump_acme |_mysql_--host=hostname --user=username --password_acme
where_acme is_the database you're migrating over, and hostname/username_are those_from your RDS instance.
You can connect_to RDS as if_it_were a regular mysql server, just_make sure to add your EC2_IPs to your security groups_per_this_forum