简体   繁体   中英

generate azure ad jwt token and call the thrid party api using those token using spring boot

I registered the app in an azure ad, and I have application id(client id) and directory id (tenant id), and secret key.

using this need to generate the jwt token in the azure ad and need to validate that token.

once the token generate need to call the third-party API's using that token in spring boot application.

please provide some example

To achieve the above requirement. You can take Reference of this Post to call the third-party Api using the JWT token using spring boot application.

In the above, there is tutorial they have built a Spring Boot Application that supports Token based Authentication with JWT. Please refer the section How to configure Spring Security to work with JWT that might be solution of requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM