JWT Generation for Apple Connect API

Fullført Lagt ut 5 måneder siden Betales ved levering
Fullført

As part of our requirement, we are looking for an expert in JWT (JSON Web Token) generation, specifically for our App Store Connect related project.

Ideal Skills and Experience:

- Proficiency in Java programming language.

- Prior experience with JSON Web Token (JWT) generation or a similar scope.

- Familiarity with Apple APIs, most importantly App Store Connect API.

Project Requirements:

- Develop a secure, efficient method to generate JWTs using Java.

- The generated tokens will be used to authenticate with Apple's App Store Connect API.

- The solution must comply with the best practices for security and efficiency.

- Deliver clean, well-commented code that allows for future modifications and scalability.

This undertaking is critical for our operational security. Your proficiency in token generation and Java, coupled with the understanding of Apple APIs, will play an integral role in our project's success.

I already have this class done, but somehow is not working, I receive a 401 Unauthorized

KeyFactory keyFactory = [login to view URL]("EC");

File file = new File("/Users/ricardolle/IdeaProjects/mystic-planets-api/src/main/resources/cert/[login to view URL]");

try (FileReader fileReader = new FileReader(file);

PemReader reader = new PemReader(fileReader)) {

PemObject decodeContent = [login to view URL]();

byte[] content = [login to view URL]();

PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(content);

ECPrivateKey privateKey = (ECPrivateKey) [login to view URL](privateKeySpec);

Map<String, Object> headerMap = new HashMap<>();

[login to view URL]("alg", "ES256");

[login to view URL]("kid", "U5NB9N7M9P");

[login to view URL]("typ", "JWT");

String issuer = "69a6de82-121e-48e3-e053-5b9b7c11a4d1"; // Replace with your issuer

long nowMillis = [login to view URL]();

Date issuedAt = new Date(nowMillis);

Date expiration = new Date(nowMillis + 3600000); // Expiration time (1 hour in this example)

JwtBuilder jwtBuilder = [login to view URL]()

.setHeader(headerMap)

.setIssuer(issuer)

.setAudience("appstoreconnect-v1")

.setIssuedAt(issuedAt)

.signWith([login to view URL], privateKey)

.setExpiration(expiration);

// Print the JWT header as a JSON string

String headerJson = [login to view URL]();

[login to view URL]("JWT Header: " + headerJson);

String apiUrl = "[login to view URL]";

// Create headers with Authorization

HttpHeaders headers = new HttpHeaders();

[login to view URL]("Authorization", "Bearer " + headerJson);

[login to view URL](MediaType.APPLICATION_JSON);

// Create HttpEntity with headers

HttpEntity<String> entity = new HttpEntity<>(headers);

// Make GET request using RestTemplate

RestTemplate restTemplate = new RestTemplate();

ResponseEntity<String> response = [login to view URL](

apiUrl,

[login to view URL],

entity,

[login to view URL]

);

// Handle the response

if ([login to view URL]() == [login to view URL]) {

String responseBody = [login to view URL]();

[login to view URL]("Response: " + responseBody);

} else {

[login to view URL]("Error: " + [login to view URL]());

}

}

Java Spring Boot

Prosjekt-ID: #37560978

Om prosjektet

37 bud Eksternt prosjekt Aktiv 4 måneder siden

Tildelt til:

solvitadzenite

⭐⭐⭐Dear Ricard P.⭐⭐⭐ I have reviewed the requirements for the role and believe that my skills and experience make me a strong candidate for this opportunity. With 7 years of experience in software development, I have a Mer

$25 USD / time
(3 omtaler)
5.1

37 frilansere byr i gjennomsnitt $37/time for denne jobben

AwaisChaudhry

Hello Good afternoon , I hope you are doing great. Just finished reading the brief details of your job . I see you have been looking for a freelancer who has experience with Java and Spring Boot. Upon the first look I Mer

$25 USD / time
(55 Omtaler)
7.7
AITSoft

Hello, Upon reading the job details I would say that all the required skills Java and Spring Boot fall under my skills. I work on freelancer full time and I believe I can do this job if I get all the detailed requirem Mer

$25 USD / time
(42 Omtaler)
6.6
pashyaa

Hi there. I am familiar with JWT token generation and signing wrt Apple connect API. Please get in touch to discuss further.  Regards, Prasanna

$38 USD / time
(13 Omtaler)
6.7
muneebkhalid006

I’m enthusiastic about contributing to your JWT generation project for App Store Connect integration. With my expertise in Java and experience with JWTs, I’m prepared to deliver a secure, efficient JWT generation solut Mer

$30 USD / time
(6 Omtaler)
5.3
Walkingdreams

We understand that you are looking for an expert in JWT (JSON Web Token) generation specifically for your Apple Connect related project. With our expertise in Java and Apple APIs, we believe we can deliver the solution Mer

$38 USD / time
(3 Omtaler)
5.1
dataspro

Nice to meet you AJC, It is a pleasure to communicate with you. My name is Anthony Muñoz, I am the lead engineer for DSPro IT agency and I would like to offer you my professional services. I have more than 10 years o Mer

$70 USD / time
(2 Omtaler)
5.6
ITSolution24x7

Hello, IT Solution 24x7. Having reviewed your requirement for a JWT (JSON Web Token) generation expert for your App Store Connect project, our team is well-equipped for the task. We bring proficiency in Java, extensiv Mer

$38 USD / time
(1 anmeldelse)
4.7
Muhammadzeesha59

Hello Client ! I am a skilled full stack developer. Having rich experience in Java , Python , C , C++ , C# , Eclipse , Sql , Mysql ,Oracle , Object Oriented Programming , Data Structure , Alg Mer

$30 USD / time
(12 Omtaler)
4.4
raeedawer

Hi, I'm Raeed. Java, Backend, Spring developer with 3 years of experience, and I'm very interested in working on your project You can contact me, please

$38 USD / time
(14 Omtaler)
4.2
B1zt

Hi there, I can implement this solution for you. I have made spring boot application which authenticate using JWT. I have good knowledge of creating JWT in a secure manner. Let me know more details Regards Bhagya

$40 USD / time
(1 anmeldelse)
2.5
MarkMemphis

Dear Ricard P., I prefer Estonia clients. This project seems a piece of cake for me. I finished exactly the same work a month ago. I have deep experience on Java, Spring Boot Please come over chat and discuss your Mer

$30 USD / time
(1 anmeldelse)
2.0
CrisTina1892

Hello Ricard P., I’ve checked your requirements and really interested in this job. I can complete your project on time and your will experience great satisfaction with me. I have rich experienced in Java and Spring B Mer

$25 USD / time
(0 Omtaler)
0.0
MilosDelic0203

Hey Ricard, I'm Milos, a Java and Spring Boot expert with over 10 years of experience. I have carefully read your project requirements regarding JWT generation for Apple Connect API. To successfully complete this pr Mer

$50 USD / time
(0 Omtaler)
0.0
fivezeroinfo

Dear Ricard P., I have carefully reviewed your project requirements for JWT generation for the Apple Connect API. As an experienced Java and Spring Boot developer with over 9 years of experience, I am confident in my Mer

$30 USD / time
(0 Omtaler)
0.0
alexandrsdombrov

Hi there, This is Aleksandrs from LV. Since I have worked on similar projects and I am super-familiar with JWT, Bcrypt, I believe that I'm the perfect person who can finish the project completely. Please contact me fo Mer

$38 USD / time
(0 Omtaler)
0.0
irfangeoirawan

Hello, I am a senior web developer, very familiar with JWT. I understand that you want JWT Generation for Apple Connect API. I can surely help you with this work. Please contact me for more discussion. Thank you.

$50 USD / time
(0 Omtaler)
0.0
irsolutions

I have extensive experience in JWT generation and Java programming, making me the ideal candidate for your App Store Connect project. I have a solid understanding of JSON Web Token (JWT) generation and have previously Mer

$40 USD / time
(0 Omtaler)
5.4
decipherzone111

Hello, Greetings! Hope you are doing well! I have reviewed the requirement properly and I am well experienced with each of the required skills as I have 7+ years of experience in java so I can help you to develop a s Mer

$38 USD / time
(0 Omtaler)
0.0
Orestpoland

Hi!, Mobile Native KING HERE. I'v just read your job purpose carefully and enough understand what you want. I am really interested on your project KING mean can do anything with his high perfect wonderful skill. Havin Mer

$35 USD / time
(0 Omtaler)
0.0
Bigwebdeveloper

Hello dear client, my name Awanish yadav and I'm thrilled to express my interest in your web develpoment project, I have 2 year's of experience about JAVA and Spring boot projects. Having carefully reviewed your proj Mer

$38 USD / time
(0 Omtaler)
0.0