Register Access Token in Xamarin Forms

แชร์
ฝัง

ความคิดเห็น • 62

  • @ZverrrOK
    @ZverrrOK 7 ปีที่แล้ว

    Simple, clear, nice tutorial. Exactly what I looked for. Thanks.

  • @theperformanceengineer
    @theperformanceengineer 4 ปีที่แล้ว

    Awesome video series. Thanks a lot, very helpful. You're indeed a most valuable professional!

  • @CelioMotta
    @CelioMotta 4 ปีที่แล้ว +2

    Nice work! Thanks for helping!

  • @waminfosyshardeepsingh583
    @waminfosyshardeepsingh583 7 ปีที่แล้ว +2

    GREAT very helpful !! Thank u....

  • @bilalmustafa
    @bilalmustafa 7 ปีที่แล้ว +1

    Thanku exactly what i needed!! :)

  • @DominikRoszkowski
    @DominikRoszkowski 6 ปีที่แล้ว

    Fantastic tutorial, thanks

  • @kamtanath4494
    @kamtanath4494 7 ปีที่แล้ว +1

    Thanks for this nice video

  • @huongcao7281
    @huongcao7281 7 ปีที่แล้ว +1

    Thanks you!

  • @user-hu3lm8wq8b
    @user-hu3lm8wq8b 7 ปีที่แล้ว

    شكراَ جزيلا بارك الله فيك

  • @sayan1605
    @sayan1605 7 ปีที่แล้ว

    You are the best and very nice tutorial.Can you create one tutorial how to use asmx webservice in Xamarin Forms.

  • @danielakachi3666
    @danielakachi3666 6 ปีที่แล้ว

    Thankss a lot....

  • @kidstube3239
    @kidstube3239 2 ปีที่แล้ว +1

    You should add this solution to a public repository so people can download the code.

  • @ivonikolaev5005
    @ivonikolaev5005 7 ปีที่แล้ว +3

    Nice tutorial, thanks again! Is it good practice to store password in preferences (from safety point of view)?

    • @HoussemDellai
      @HoussemDellai  7 ปีที่แล้ว +4

      As I know Preferences are not a safe place. But also Xamarin provides a library for crypting data.

  • @francescogruen2385
    @francescogruen2385 5 ปีที่แล้ว

    where do i manage the database? Do i have external access to my stored data? I don't get the whole concept

  • @khalat173
    @khalat173 6 ปีที่แล้ว

    Hi Houssem,
    Checking only if the user has a token isn't enough since there will always be one if the user already signed up. Not to mention that an attacker could trick the app onto believing that a token is present when it is just a random string.
    Best would be to check if the token is valid by sending it to the server at an appropriate route, with [HttpPost, Authorize] as a decorator on the Asp.Net Server , and give access to the app if the token return an IActionResult of Ok().
    From then, easy to return the adequate NavigationPage according to the result returned.
    Nice tutorial though. Helped me a lot to get started, as cross-platform apps can be daunting for C# noobs!
    Thanks again for the tutorials!
    P.S: Can make my code available if people want to.

    • @patrickwheatley3878
      @patrickwheatley3878 6 ปีที่แล้ว

      Khalid ATIF you have a github

    • @khalat173
      @khalat173 6 ปีที่แล้ว

      Hello Patrick. Yes. I will put the code on my Github as soon as possible as I am traveling now

    • @patrickwheatley3878
      @patrickwheatley3878 6 ปีที่แล้ว

      Thank you that will help me a lot

    • @khalat173
      @khalat173 6 ปีที่แล้ว

      Hello back,
      Sorry for the delay. Just got some internet.
      Here is a Pastebin repo with the code and explanations.
      My code isn't definitive as I was just checking if it worked. Will spruce it up before releasing my app.
      pastebin.com/CAhEidcs
      Let me know if you don't understand something. Will get back to you as soon as I can.
      Good luck with your app. You'll see, this is daunting....

    • @patrickwheatley3878
      @patrickwheatley3878 6 ปีที่แล้ว

      No problem thanks a lot I will take a look at your link now, I can't thank you enough

  • @adammizam7716
    @adammizam7716 4 ปีที่แล้ว

    Hi Houssem Dellai, i just want to know how to i make the pages display the content from the api without clicking the button? Sorry i'm newbie in xamarin and programming world

  • @KiWi26
    @KiWi26 6 ปีที่แล้ว +1

    Also if for some reasons we wanted to de-register the access token, how can we do it?

    • @HoussemDellai
      @HoussemDellai  6 ปีที่แล้ว +1

      Ki Wi from the mobile app you just remove the registered token from Settings. From the Web Api, as I know, the token will still valid until it expires.

  • @JimTyminski
    @JimTyminski 7 ปีที่แล้ว +2

    In your SetMainPage method, what if the AccessToken is expired? You do not have a condition for that. Is there a way to check if it is expired?

    • @HoussemDellai
      @HoussemDellai  7 ปีที่แล้ว +1

      Jim Tyminski good question. you can save the expiration date into Preferences/Settings. Then you retrieve it in SetMainPage

    • @JimTyminski
      @JimTyminski 7 ปีที่แล้ว

      Of course! :) Thanks.

  • @haihonguyen
    @haihonguyen 3 ปีที่แล้ว

    Do you have an example to use CoreData/icloud on Xamarin.Forms? Thanks

  • @binhojansen
    @binhojansen 7 ปีที่แล้ว +2

    You are the best.. Exactly what i need... Can you implemente reset password with email ? thanks

    • @HoussemDellai
      @HoussemDellai  7 ปีที่แล้ว

      Fabio Jansen glad you loved it :) I'll take your request in consideration.

  • @danielserrao
    @danielserrao 6 ปีที่แล้ว

    Does anyone knows if It Works with shared projects?

  • @ceiqa
    @ceiqa 4 ปีที่แล้ว +2

    Hi Houssem, it's great because ok you'll retrieve your token once your registered. BUT, I have one important question. Is it secure ?? Because, settings are not encrypted, which means you are storing sensitive data into your phone !? (token api + password). Is it not better even thought mandatory to use docs.microsoft.com/en-us/xamarin/essentials/secure-storage?tabs=android secure storage ?
    By the way !! I really like your videos, nice job :)

  • @skyblaze6687
    @skyblaze6687 5 ปีที่แล้ว

    sir can it work with django rest api?

  • @sujeetkumaryadav9600
    @sujeetkumaryadav9600 7 ปีที่แล้ว

    hello sir,
    can you please tell me how to use file upload control in xamarin cross plateform

  • @anilyadav-yv6uk
    @anilyadav-yv6uk 6 ปีที่แล้ว +1

    I have deploy wep api on azure account it is running successfully but when I want to register using xamarin app using visual studio it give me error "No compatible code running" but from postman it work's fine

    • @HoussemDellai
      @HoussemDellai  6 ปีที่แล้ว

      anil yadav try using the breakpoint to debug the app and check if the call to the web api was done successfully or not

    • @anilyadav-yv6uk
      @anilyadav-yv6uk 6 ปีที่แล้ว

      Yes I have debug it but when breakpoint come on respose it give this error but with postman if I send request for signup it successful with azure and on hosted website

    • @Jozott
      @Jozott 6 ปีที่แล้ว

      I also use Azure and I had the problem that I didnt used the same context for the Ideas and the Accounts, maybe you have some issues with this

  • @vincentmalinga5233
    @vincentmalinga5233 4 ปีที่แล้ว

    Hi there, In my Project, i followed the exact code, But the problem is, Every time i call a Log in/Register Api, i get this Error: "Java.Net.SocketException: 'Connection reset' " @Houssem Dellai

  • @bebagamal6950
    @bebagamal6950 7 ปีที่แล้ว

    Hi Where I can Find the source code for this tutorial please

  • @patrickwheatley3878
    @patrickwheatley3878 6 ปีที่แล้ว

    Hey I need help with the token web service

  • @jihoonlee3310
    @jihoonlee3310 6 ปีที่แล้ว +1

    all of the sudden you have username instead of email

  • @jean-frederickouame7547
    @jean-frederickouame7547 6 ปีที่แล้ว

    Is it possible to make a client access token for whatsapp ?

  • @vincentmalinga5233
    @vincentmalinga5233 4 ปีที่แล้ว

    Hi Houssem Dellai, i followed your tutorial accordingly, but when i click the Log in or Register button, i get an Error that says: "java.net.SocketException: Connection reset" Pleae help.

  • @ankushmehndiratta692
    @ankushmehndiratta692 4 ปีที่แล้ว

    good job , can we find the source code of your projects

  • @KiWi26
    @KiWi26 6 ปีที่แล้ว +1

    Houssem Dellai, Thanks a lot, thats very nice video series, i liked them all, I am not able to execue this in Android, can you pls help me?

    • @HoussemDellai
      @HoussemDellai  6 ปีที่แล้ว

      Ki Wi that should just work fine especially if it works with empty project. Otherwise it is a problem in your VS install.

  • @amine_bahij_02
    @amine_bahij_02 7 ปีที่แล้ว

    houssem please i need your help i need to display for example the Idea title created by the user without using the list view . pleaaase houssem it's very important !!

  • @Maystro_eg
    @Maystro_eg 6 ปีที่แล้ว +1

    How to Send Simple Data to PHP , i tried a lot of things but always $_POST gives me empty result , i follow your tut exactly but it gives my empty response too, can you tell me why ?? plz

    • @HoussemDellai
      @HoussemDellai  6 ปีที่แล้ว

      Ahmed Saber this video uses Asp.net which is different than php. Try always to test your web services using Postman before client mobile app.

    • @patrickwheatley3878
      @patrickwheatley3878 6 ปีที่แล้ว

      Ahmed Saber I used php to submit data with php to mysql, I serialzed my object into json format, and post my object to the php file. The php file looks for the json object with file_get_contents method, and I use json_decode method and initialize my variables to fields in the json object

  • @dhanapradap
    @dhanapradap 2 ปีที่แล้ว

    Please add link to download your sample project cose

  • @samerrazzaqh
    @samerrazzaqh 3 ปีที่แล้ว

    I have json like :
    {
    "data": [
    {
    "categoryId": 1,
    "catName": "PHP"
    },
    {
    "categoryId": 2,
    "catName": "Web"
    }
    ]
    }
    help my

  • @vincentmalinga5233
    @vincentmalinga5233 4 ปีที่แล้ว

    Hi there, thanks for great tut, however, i have an error on my code, When i call the Register Api service, and click Register button , it gives this Error: Java.Net.SocketExceptions:'Connection reset' ... Anyone please help

  • @reunioneselaltoguadalupe683
    @reunioneselaltoguadalupe683 3 ปีที่แล้ว

    No es un ejemplo de mucho valor, más bien presenta cosas demasiado triviales

  • @ricardomendoza5829
    @ricardomendoza5829 5 ปีที่แล้ว +1

    JObject jwtDinamic = JsonConvert.DeserializeObject(jwt);
    it did not work with dynamic and I changed it to JObject and it worked !!!

    • @ituscomptabilite768
      @ituscomptabilite768 4 ปีที่แล้ว

      Thank you very much for the comment you saved my time.
      Actually Its due to the move to .NET Standard 2.0. If you want dynamic you need to add the reference to reference Microsoft.CSharp.dll from Nuget . Dont do it because it wont work in iOS anyway.
      github.com/xamarin/Xamarin.Forms/issues/2921
      techxposer.com/2018/01/03/missing-compiler-required-member-microsoft-csharp-runtimebinder-csharpargumentinfo-create-solved/