Questions tagged [access-token]

The Access Token is obtained as the final token in the OAuth authentication process.

Acquire the browser token using Python

Is there a way to retrieve the Auth token from the browser using Selenium? I'm currently working on creating a browser instance and need to access the tokens in the network tab. Any suggestions on how to achieve this? ...

Upgrade access token to cookie or enable access token authentication

I am working on a React and Next JS web application with auth0 for session/cookie-based authentication. I need to programmatically invoke an API from another source, but the only credential I have is an access token. I'm considering two potential solutions ...

Error: Unable to access attributes of null object (specifically 'accessToken')

After following a YouTube tutorial by Lama for creating an E-commerce application, I attempted to add a logout feature on the admin page that was not covered in the tutorial. To implement this, I used Redux to grab the currentUser and set it to null to suc ...

The Azure Storage NPM package for Azure Files is unable to retrieve the access token

The current version of NPM's azure-storage package is 2.10.3 Upon executing the code snippet below, an attempt is made to generate a SAS token for an existing share, directory, and file. Despite successfully running through the code, no token is returned ...

What is the process for including a resource parameter in the acquireTokenSilent method of an MSAL instance within an Angular application?

const requestToken = { permissions: ['view_only'], }; newToken = await this.authInstance.acquireTokenSilent(requestToken); I'm trying to include the client ID of my Web API as a resource parameter when requesting the access token. Struggling to find th ...

Instructions on creating a PHP file key that automatically expires after 10 days, preventing other users from accessing the API once the key has expired

My goal is to create a key that remains valid for 10 days from the date of generation. This key should allow anyone to access an API for a period of 10 days. I specifically want to implement this functionality using PHP only, without relying on sessions or ...

Exploring Nodejs: Navigating through ServerResponse (or, Unraveling the mystery of client URL parameters)

User Interaction: Upon making a post request to the server, the user is redirected to Spotify's authorization endpoint where they grant access to our web application. After completion, the user is redirected back to our website with a URL that includes a ...

Guide on Generating SAS Token for Azure Table Storage in a jQuery Application

I am currently working on a jQuery web application that requires read-only access to an Azure Table Storage, fetching one record at a time by passing in the PartitionKey and RowKey. To simplify my code, I have integrated the Azure Storage JavaScript Client ...

How can you efficiently manage Access & Refresh tokens from various Providers?

Imagine I am allowing my users to connect to various social media platforms like Facebook, Instagram, Pinterest, and Twitter in order to use their APIs. As a result, I obtain access tokens for each of these providers. Based on my research, it seems advisa ...

Angular-oauth2-oidc does not successfully retrieve the access token when using OAuth2 and SSO

Here's an issue I'm facing: I've been attempting to integrate SSO and OAuth2 flow using angular-oauth2-oidc. When testing with POSTMAN and ThunderClient in VS Code, I managed to receive the correct response (the access_token). However, I am ...

The duration for which an API Access Token remains valid is extremely brief

I recently started working with APIs and my current project involves using the Petfinder API v2 to develop a website that allows users to search for adoptable animals. The API utilizes OAuth, requiring a key and secret to obtain a token via CURL. However, ...

Tips for preventing the loss of ajax calls when an Oauth access-token expires

As the creator of a JavaScript browser application (SPA) that communicates with a server protected by OAuth 2, I encounter the challenge of using short-lived access tokens and longer-lived refresh tokens. While this specific scenario involves my own server ...

What is the best way to securely store the access token for my API in the browser following the authorization of the login flow

When developing my web application, I am ensuring that my frontend client and backend API remain completely separate. The Laravel API backend will be hosted on api.myawesomeapp.com, while the NextJS front end will reside on myawesomeapp.com. My Laravel OAu ...

Building a secure NodeJS REST API with authentication capabilities utilizing Passport and OAuth2 with the integration of

Currently, I am in the process of developing a RESTful API using NodeJS and for authentication purposes, I have opted to utilize Passport. In order to maintain true RESTfulness, I have decided to implement token-based authentication instead of sessions. M ...

Dealing with soon-to-expire access tokens from a partner API

Just starting out with Next.js and facing a common challenge without knowing where to begin. Here's the scenario: I am working with a partner who has an API that requires Bearer authentication. The Bearer token is obtained by calling an endpoint (/auth) w ...