Questions tagged [access-token]

Access Token is the last token acquired during the OAuth authentication process.

4002 questions
1
vote
3 answers

Microsoft Graph Api gives Expired Device code today

I have been testing Microsoft Graph api user access token by following Java example URL . Yesterday it worked fine but today it always give me com.microsoft.aad.msal4j.MsalClientException: Expired Device code . I dont' give any device code and tried…
1
vote
1 answer

How to integrate Android App to Identity Server with ASP.NET Core 3.1 for Authentication?

I have created ASP.NET Core project with Angular Template with authentication using visual studio. Now I am developing Android App and want to integrate it with my existing ASP.NET CORE 3.1 WEB API (Backend). I have added client in appsettings.json…
1
vote
0 answers

Implementing multiple AuthenticationHandler for different accesstoken

I have a microservice which accepts requests from different clients for which it uses different accesstoken to authenticate each client. To do this I have created an AccessTokenAuthenticationHandler which implements the…
Bunnynut
  • 1,156
  • 5
  • 14
  • 37
1
vote
1 answer

JWT: what is the advantage of a refresh token when using grant_type=password

I'm following this article to understand refesh tokens. In my case I have to connect to REST api using grant_type=password, and I receive a token with a 5 minute lifespan. So every 5 minutes I have to issue a POST request passing client-id, username…
opensas
  • 60,462
  • 79
  • 252
  • 386
1
vote
0 answers

Remove/Hide custom claims from Azure B2C Access Token

We set custom claims in our custom B2C policies.
Mr.GT
  • 310
  • 4
  • 12
1
vote
2 answers

How to post a COMMENT with FB application profile photo?

It is possible for a 'facebook application' to post a COMMENT on a POST when there is a valid ACCESS_TOKEN. API call for the same is: /xyz_profile_id/comments/?access_token=... ACCESS_TOKEN being generated by allowing the "facebook application" to…
Nito Jose
  • 11
  • 2
1
vote
3 answers

How to grant AWS programmatic access to thousands of non-EC2 computers, and rotate keys?

My java service will run on my computers (let's say I'll have more than 1000 computers) and will send some data to S3. I use AWS Java SDK for it. If I'm right, for doing it I need to use access key & secret key on my computers. (let's say it will be…
Rougher
  • 834
  • 5
  • 19
  • 46
1
vote
3 answers

Configuring Azure AD Access token lifetime policy for an app using powershell doesn't work

We're trying to configure access token expiry time to 8 hours using below powershell cmdlets, but it's not getting enforced on application. It works when applied at org. level (i.e. -IsOrganizationDefault $true). New-AzureADPolicy -Definition…
Rajat
  • 57
  • 3
  • 9
1
vote
1 answer

Cant decode string from API using my Private Key

Im Trying to get an accessToken from an API I generate a public/private keyPair, I send the public key, the API returns an encrypted accessToken that I should decrypt with my private key (basic as it seems) I belive that im doing everything right,…
1
vote
1 answer

Zoom Api Access Token expire And Refresh Token generation not Working

I am trying to integrate Zoom with my CodeIgneter application using API with OAuth method. I created an Access Token and integrated my Zoom account with my application successfully. After 1 hr the Zoom account access key expired. In the Zoom API…
1
vote
1 answer

Getting refresh token and exchanging for access token Google Drive Javascript API?

I am using the Google Drive API as well as the Google Picker API on the frontend. My goal is to get users to authorize their drive account to be used, and subsequently be able to call the Google Picker API whenever they want without re-authorizing…
1
vote
1 answer

Unable to get refresh token of https://management.azure.com/ using PowerShell

I am trying to get Access token and refresh token for the "https://management.azure.com/" resource using PowerShell, but I am getting an only Access token. I need a refresh token as well. I share my code as below. $clientID =…
1
vote
1 answer

Error getting access token from GoogleCredential

I am trying to get an access token to use the Cloud SQL Admin API to export a table as CSV to google cloud storage. I keep getting this error: Scopes not configured for service account. Scoped should be specified by calling createScoped or passing…
1
vote
1 answer

Can I store someone's YouTube access_token & refresh_token only to use it later after a week?

I have a webapp which lets the user OAuth 2.0 to youtube & after exchanging the authorization code I can capture the access_token & refresh_token into my database . Can these tokens be maliciously used later by me , say after 2 weeks , to delete the…
Rohit Kumar
  • 1,777
  • 2
  • 13
  • 26
1
vote
3 answers

Can I create an Identity Server 4 ASP.NET Core API using 2 different token authentication middleware?

I am trying to figure out if its possible to write an ASP.NET Core API that consumes an identity server token using either Reference Tokens or JWT tokens based on whatever I've configured my identity server to use. The back-end configuration for IS4…