简体   繁体   中英

How to use access_token in azure with OAuth 2.0

I am practicing an azure sample named OAuth 2.0 Sample for Azure AD Spring Boot Starter Resource Server library for Java .I followed the steps but blocked in Check the authentication and authorization .I have got the access_token successfully, but I don't know how to use it in postman or any other ways. Is there any doc or advice? Thanks very much!

Okay, I added the Authorization in request header, but I got 401 and an error message . And this is way where I got the access_token . Is there something wrong?

You could do something like below:

You can add the necessary URL and HTTP verb at the top.

You will have to add Authorization Headers in the postman and add the oauth token bearer like below

Authorization :  Bearer <Oauth Token>

在此处输入图像描述

Update:

在此处输入图像描述

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