Tokens are issued to clients by an authorization server with the approval of the resource owner. The client uses the access token to access the protected resources hosted by the resource server.
Questions tagged [bearer-token]
1416 questions
-1
votes
1 answer
How server sends the JWT to client in Token Based Authorization?
I'm learning about authentication in Java and Spring and about difference between session and token based authentication.
I know that in session based authentication the user sends the username/password to server. It could send the credentials using…

elvis
- 956
- 9
- 33
- 56
-1
votes
1 answer
onload function with token bearer javascript
I have my function
function setImg(imgUrl){
img.src = imgUrl
img.onload = function () {
ctx.canvas.width = this.width;
ctx.canvas.height = this.height;
ctx.drawImage(img, 0,0);
updateData(lastData)
};
required to upload…

khalD
- 317
- 5
- 15
-1
votes
1 answer
Wordpress API - JWT Auth - Rest_cannot_create - Sorry, you are not allowed to create posts as this user
I'm using Json Web Token with Wordpress.
I succeed in generating a token “code”: “jwt_auth_valid_credential”.
But when I try to create a post to my wordpress with my token (Header : Bearer token-generated). I got a : rest_cannot_create - Sorry, you…

Jacques Mivi
- 71
- 5
-1
votes
1 answer
Bearer token expiration in Java
I am calling below API to get bearer access token.
POST https://idcs-xxxx.identity.c9dev2.oc9qadev.com/oauth2/v1/token
Once the token is retrieved i will use the same token in below APIs. These APIs are part of single transaction. But every time I…

Shruti sharma
- 199
- 6
- 21
- 67
-1
votes
1 answer
How to Add multiple security schemes Bearer and ApiKey in swashbuckle
can anyone suggest how to add multiple security schemes in Swashbuckle? and declaring both schemes are applicable globally
1. Bearer Token and
2. Apikey

zeusmos
- 168
- 1
- 4
- 13
-1
votes
1 answer
Unable to get the Bearer Token - Web Test, Performance Testing
I'm creating a Web Test in Visual Studio 2017 for Performance Testing. Our web application is an Azure with an AAD authentication frontend. It is the authenticating as a test user that is failing. While recording with VS or fiddler, I'm failing to…

SK.
- 4,174
- 4
- 30
- 48
-1
votes
2 answers
How to get the bearer token from http request
I have the following cUrl command to send reqest to server
curl -k https://localhost:9200 -H "Authorization: Bearer eH8AIFX6PqyrmJ1cJLC"
in the server side I need to retrieve the token that is eH8AIFX6PqyrmJ1cJLC.
the line,
String…

Radha
- 61
- 1
- 10
-1
votes
1 answer
Web API 2 does not say unauthorized when HTTP method not supported
I was just testing a new POST method, and I accidentally sent an unauthorized GET request, and the response I got was:
"message": "The requested resource does not support http method 'GET'."
But when I sent a POST request, I got this…

Shahin Dohan
- 6,149
- 3
- 41
- 58
-1
votes
3 answers
angular 5 fetch data from Api- No 'Access-Control-Allow-Origin' header
I want to fetch data from a API. To fetch the data u need to pass the following conditions: U need to use a token. This token is only valid for a specific public IP. u need to use the bearer authentication scheme to fetch the data. Now i want to try…

MarcoLe
- 2,309
- 6
- 36
- 74
-1
votes
2 answers
post request with bearer token in ionic 2 (angular 2)
I'm trying to make a post request from an ionic2 project to a server that needs in header a bearer token.
var headers = new Headers();
headers.append('Authorization', 'Bearer '+mytoken);
let options = new RequestOptions({ headers: headers });
let…

Symeon Mattes
- 1,169
- 16
- 40
-2
votes
0 answers
How to implement multpile entry points in Spring?
I am new in Spring and developing a project in Spring Boot 3.1.2 with Spring Security 6.1.2. If the JWT Token is invalid, I am using my customBearerTokenAccessEntryPoint and customBearerTokenAccesDeniedHandler. I also want to handle the exception…

akif.hasdemir
- 1
- 1
-2
votes
1 answer
How can i get bearer token with email & password in ASP.Net Core MVC
I want to do authentication with office 365 in my mvc project and I need to create a bearer token.
How can i get bearer token with email & password in ASP.Net Core MVC

Emre Serper
- 19
- 1
- 5
-2
votes
1 answer
How to authenticate a call to a private google cloud function from a container on a VM on the vpc?
In GCP, I have a Compute Engine VM on the default VPC running docker. I have a container app (python fastAPI web app) that needs to call a private cloud function to post some data using requests.
head = {
'Content-Type':…

scimeup
- 1
- 2
-2
votes
1 answer
Why JwtAuthenticator have "Bearer" in the header?
Hi there so i've been trying to use one of the authenticator "JwtAuthenticator" and I saw that the "Authorization" header have "Bearer" word not "JWT" is that a bug or am i doing something wrong any help please?
enter image description here
enter…
-2
votes
1 answer
How to obtain an Oauth2 bearer token in C# using authorization_code?
I have a postman request that works correctly in obtaining a bearer token, that I can grab and use to make a successful request. But I cannot obtain an equally valid bearer token in c# and I have tried about 100 different approaches.
Here is the…

HerrimanCoder
- 6,835
- 24
- 78
- 158