access-token

Laravel Passport tokensExpireIn seems not working

血红的双手。 提交于 2019-12-10 03:05:52
问题 i'm using Larave 5.4 passport to create SPA application. However, i was able to make authentication work. but access token are always short-lived tokens with 600s expiration time. i could not increase expiration time with: Passport::tokensExpireIn(Carbon::now()->addDays(15)); Passport::refreshTokensExpireIn(Carbon::now()->addDays(30)); it have no effect at all. any help? thanks in advance. 回答1: Personal access tokens are always long-lived . Their lifetime is not modified when using the

Facebook. Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user

本小妞迷上赌 提交于 2019-12-09 19:34:52
问题 with my app's administrator acount on facebook my app work normally, but with other account I get error: Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. I had this problem before with other app (publish text on the user's wall), but fixed after i added $user = $facebook->getUser(); What's wrong here? I have added offline_access permission... Help me, please if you can, Thank you very much. <?php require_once('images

Facebook PHP SDK dealing with Access Tokens

浪子不回头ぞ 提交于 2019-12-09 17:40:57
问题 I have crawled around lots of various answers but am still a bit confused with how I should be dealing with facebook access tokens . One of the main problems I'm having is due to what information is being stored in my browser. For example, I log onto the app, the token expires, I can't logon again unless I clear cookies/app settings in browser. I stumbled across this thread: How to extend access token validity since offline_access deprecation Which has shown me how to create an extended

Cookies AND Bearer Token in the same application

北城以北 提交于 2019-12-08 17:34:32
问题 So, here is my situation. I have a web application where Users register and manage/view the data that is automatically generated every time they have a doctor appointment. At the same time, this User data is exposed to any approved Client (third party app) via an API. Also, these Clients may feed data into the API. So my web is a central repository of data of the Users that other Clients can consume/feed. That's ok. Now, I want the User to create an account in my web application using Email

Google plus for android: Invalid Credentials

无人久伴 提交于 2019-12-08 17:12:48
问题 I am using the followin code to get an Access Token, after connecting to Google+, to get profile info and e-mail: String sAccessToken = GoogleAuthUtil.getToken(this,mPlusClient.getAccountName() + "", "oauth2:" + Scopes.PLUS_PROFILE + " https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"); This Access Token I am not storing and trying to re-use. Instead I ask for an Access Token everytime, expecting a new(different) Token, so that I don't need to

Outlook Addin Error Code 13005 for auth.getAccessTokenAsync

左心房为你撑大大i 提交于 2019-12-08 12:38:57
问题 So I am trying to use single sign on in an outlook addin. I have registered my app at https://apps.dev.microsoft.com/. In my Manifest I have <WebApplicationInfo> <Id>{myId}</Id> <Resource>api://mydomain.com:3000/{myId}</Resource> <Scopes> <Scope>Mail.Read</Scope> <Scope>profile</Scope> </Scopes> </WebApplicationInfo> mydomain.com is actually a domain i map to my local IP. Outlook accepts my manifest just fine. How ever when i call Office.context.auth.getAccessTokenAsync , I get the following

Google Apps Script and curl

十年热恋 提交于 2019-12-08 10:59:55
问题 This is probably a very simple problem, but I am pretty new to curl and have never had it properly explained. This is the first time I have had to get an access token via curl and I have never seen an example. My google searches have not been helpful. I know how to make the transaction requests once I have the access token, but can't get the token to move on to that step. Below is the api documentation example of how to get the token: curl -X POST -u <API USERNAME>:<API SECRET KEY> https:/

Invalid signature while validating Azure ad access token, but id token works

徘徊边缘 提交于 2019-12-08 05:57:54
问题 I am getting invalid signature while using jwt.io to validate my azure ad access token. My id token, however, validates just fine! I have seen and tried the solutions suggested in Invalid signature while validating Azure ad access token and https://nicksnettravels.builttoroam.com/post/2017/01/24/Verifying-Azure-Active-Directory-JWT-Tokens.aspx but neither works for my access token. The access and Id token is generated via Adal.js: var endpoints = { "https://graph.windows.net": "https://graph

cant get access token from google using angularjs

二次信任 提交于 2019-12-07 21:14:12
问题 i am folowing this guide and trying to get a accses token from google api. i alredy got an auth code. so i'm using angularjs to send httprequest to google server. the problem is that i always get bad request answer. this is my code: $http({ method: 'POST', url: 'https://accounts.google.com/o/oauth2/token', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, params : { code : '4/heMv6ozWwCxS5RyTzCgThAgxvRyk.oske-bNEGOUTOl05ti8ZT3YnwwH8iQI', client_id : GoogleAppInfo.clientId,

Allow loopback application to use previous access token

倾然丶 夕夏残阳落幕 提交于 2019-12-07 20:16:59
问题 In my loopback application, once i create the access token (after login), it remains valid in my application unless application stops. when application restarted it is not allowing previous access token. How can i make previous access token validate even after restarting the application? 回答1: Your access token is getting stored by default in loopback memory . Therefore, it persists only until the application is restarted. open server/model-config.json "AccessToken": { "dataSource": "db",