Færdiggjort

.Net c# function to decode and validate JWT tokens

Hi,

I need a simple c# function to decode and validate JWT tokens.

The function must return the payload, or an empty string if the token is not validated.

It must be .Net Framework 4.7.2 compatible

The function must be called like this:

public static string ValidateJWT(string tokenTodecode, string publicKey)

This is an example of token to validate:

eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Il84cXZrbUVpazQtejlvU2xFSUJGQnNDQlN6byJ9.eyJ1bmlxdWVfbmFtZSI6InBydWViYTExQHZheW9vLmNvbSIsImdpdmVuX25hbWUiOiIiLCJmYW1pbHlfbmFtZSI6IiIsImVtYWlsIjoicHJ1ZWJhMTFAdmF5b28uY29tIiwibmFtZWlkIjoiajliZ09vV24iLCJvdXRzZXRhOmFjY291bnRVaWQiOiJ4RTlMWW5XdyIsIm91dHNldGE6YWNjb3VudENsaWVudElkZW50aWZpZXIiOiIzNzM0OSIsIm91dHNldGE6aXNQcmltYXJ5IjoiMSIsIm91dHNldGE6c3Vic2NyaXB0aW9uVWlkIjoiS2FXeDNiOVYiLCJvdXRzZXRhOnBsYW5VaWQiOiJwTDlQclBtSiIsImF1ZCI6InZheW9vLm91dHNldGEuY29tIiwiaXNzIjoidmF5b28ub3V0c2V0YS5jb20iLCJleHAiOjE1NjAwNDQ3MTcsIm5iZiI6MTU2MDAxNTkxN30.ZrX6DhufyZZYmmQYVAQOOpmsmaqdzG5W1pjS2MSHpLztHHczpriXSYDYttPR9_TRPiGc-nNuvEjiOWvF9lqstILhbR3sprNUPqFxBH89whuxYPXRCOGp0pSckZoLpNJ7IfuQ8uQGeEN_e5llXRO_KCHHJCQdDUwpdMegGmF-zWau2Kz-3iQau5a4VlRdgMK8RoyR75Rg0VlClaPNjPmN1lkS6p3bKADJweSZgx60DkLeLu-w88pTtwq3JPy10jXK_TuCK15SZDWtQ_ErIT5_RC15olIw3WXvec3GZnw_1bXkFOzaj86pWaAJdaBNMgmlvhXYZEm6xZeO6RQb_QRh6g

And this is the public key that must be used to validate tokens:

-----BEGIN CERTIFICATE-----

MIICwjCCAaqgAwIBAgIQAPqKvM3OCjHw4wQu0ErWITANBgkqhkiG9w0BAQ0FADAcMRowGAYDVQQD

DBF2YXlvby5vdXRzZXRhLmNvbTAgFw0xOTA2MDUwODQzMTdaGA8yMTE5MDYwNTA4NDMxN1owHDEa

MBgGA1UEAwwRdmF5b28ub3V0c2V0YS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB

AQCAIkLX11eiJtK/ghQw2uk2Uv3V6Hm2GOMznvpQsbWwdgPUTReQSA7o2OjsVd0UHydNglow2Jqi

AhiO9wqqYP5ZfnMniplwqf1YhXhi3DAk1HiIooSmvnCCBfZMBR/NfhzxMSxMI4ZaAQ6mf88WYZW8

29QaZlBonqc07JkXbGlt735rGTwjc6Qx5zE0LBDk61Pj5i5JKTcZr9uez+MtMOotsLb+haiz9fnD

nUIH0i4oc1kf42vnSpBdQhnvviC/5qRMmOJtO4li8pR6pXBLi4aTNMGP8wWF2gjNXTEnd7uXNmSH

euntEd8jwZcBrZCyOkNcRYFVkLetjfNxvss6OBX5AgMBAAEwDQYJKoZIhvcNAQENBQADggEBAGJJ

aX6E08AFOe86y+K3Fvt2JM611qxRIwJ9BMsxWMHo7d4XQHquIYTktA1W6vPHKlJ5nO0jsJHiWcl9

eyIQnoxAYhhH5qT2FKhx+vyMCKy5XV7K8ykfnQjRcNCJXk4+rwcDaz+RfNfXZrAo+dH2GwOnkwv2

RBXKMKZK6PbkWTaDUn4MlvfJGA/roFQohOckkiu1MNOJAwTVzm9s98zewnfhaJEB555eFRoYmpuU

jws6vql5HGofU0QBUNCYncuE/4yYZLxcQW6nCqdGlAXRro03E/lSuday/XO+PyEF8OL1ykFVu5vf

mLJpddffkGOND5OZG20naAkv9uv+KmMnnq4=

-----END CERTIFICATE-----

Evner: .NET, C# Programmering

Se mere: net image function, net call function dll, covert vb net php function, net custom dll decode video, net registration function, net resize function, vb net add function metadata, vb net resize function, net template function, asp net c freelance, asp net c# freelance, asp net c#, asp net c, c function, c++ function, freelance net c, freelancer net c#, freelancer net c, freelancer programmning net c pos application inventory printing of barcode with source code shop

Om arbejdsgiveren:
( 8 bedømmelser ) Pozuelo de Alarcón, Spain

Projekt ID: #19929843

Tildelt til:

jarusdeuja

Since i have recently done some work on JWT on my workplace, i think i can be the best candidate for this task.

€11 EUR på 1 dag
(0 bedømmelser)
0.0

13 freelancere byder i gennemsnit €21 på dette job

lurdsubas

Hello, I am a c#.net developer with versatile experience on computing message authentication codes and I am readily available to create a c# method that validate JWT as required.

€40 EUR in 3 dage
(40 bedømmelser)
6.4
Zahidtanveer

Hi, I have experience in rest Api and jwt token based authentication. contact me for quality work. Available for immediate start. Thanks.

€29 EUR på 1 dag
(21 bedømmelser)
5.0
MHassanBedor

Hi, I read project description. I have experience in json tokens, I developed c# applicationss json API. Looking forward to work with you. Regards

€27 EUR på 1 dag
(14 bedømmelser)
3.4
mostafawalker

I'm Highly Skilled in c# programming , i can help you in your requirements to convert and validate token , please contact me for details

€25 EUR på 1 dag
(7 bedømmelser)
2.7
shivamj952

Hello Sir, I can do this JWT token based work, as you described in description. I have done lots of project with jwt authentication. Please ping me. warm regards Shivam Jaiswal.

€8 EUR på 1 dag
(4 bedømmelser)
1.8
hakanmacat

Hello. I am a Senior Software Developer with strong .Net experience and I also have experience with Jwt authentication. I can gladly help you. Thanks

€19 EUR på 1 dag
(0 bedømmelser)
0.0
arasakumarn

I can complete this within 3 days and share you the function. I have experience in JWT authentication in .Net Core web Api. This is my first freelancing project so I will deliver the functionality without fail .I am a Flere

€14 EUR på 1 dag
(0 bedømmelser)
0.0
€23 EUR på 1 dag
(0 bedømmelser)
0.0
diegoca

Hello, my name is Diego and I am from Uruguay. I have experience in Python, .NET, SQL, PHP, Ionic, QA Tester and more I would be glad to help you with your proposal. I'm looking for opportunities like this to grow a Flere

€30 EUR in 2 dage
(0 bedømmelser)
0.0
mohamedirshad80

Experienced professional doing it for the experience

€14 EUR på 1 dag
(0 bedømmelser)
0.0
shivangioffc

Hello, After reading your offer this looks like a perfect fit for my skill sets. I have built a large number of creative designs /Development for different businesses. My name is shivangi tiwari and I am an Indian we Flere

€8 EUR på 1 dag
(0 bedømmelser)
0.0
damian1041

Hi. I'm professional .NET developer with over 5 years of experience. Recently I'm trying to start freelancer career. Currently I'm more focused on geting some good reviews that would help me kick start so you can be su Flere

€24 EUR in 3 dage
(0 bedømmelser)
0.0