access-token

Google API Fatal error: Uncaught LogicException: refresh token must be passed in or set as part of setAccessToken

前提是你 提交于 2019-12-20 06:48:15
问题 Working with the PHP Quickstart code, I found a problem: when the token needs to be refreshed, the code returns the following error: Fatal error: Uncaught LogicException: refresh token must be passed in or set as part of setAccessToken in /app/vendor/google/apiclient/src/Google/Client.php:258 Stack trace: #0 /app/gmail.php(32): Google_Client->fetchAccessTokenWithRefreshToken(NULL) #1 /app/test.php(14): getClient() #2 {main} thrown in /app/vendor/google/apiclient/src/Google/Client.php on line

save and use auth data in box android API

匆匆过客 提交于 2019-12-19 11:34:53
问题 I am creating an box android app that allows user to upload media files on their account. I have set up my client id and client secret,it is authenticating my app too. Uploading part is also done,but the problem i am facing is to save the auth data [which is obviously needed so user is not needed to login again and again] Load, save and use of authentication data in Box Android API the solution given above is not working [may b they have removed 'Utils.parseJSONStringIntoObject' method] i can

Access token immediately invalidated

泪湿孤枕 提交于 2019-12-19 09:13:12
问题 for a few users (maybe not that few, considering the number of related mails I'm receiving) the access token associated with an OAUTH authorization seems to be immediately invalidated. The user is guided through the usual authorization process, he accepts the permissions, he is redirected to the right page which includes the access token, but as soon as my application tries to use the access token to get the user ID, an error is received instead: {"error":{"message":"Error validating access

Access token immediately invalidated

有些话、适合烂在心里 提交于 2019-12-19 09:12:03
问题 for a few users (maybe not that few, considering the number of related mails I'm receiving) the access token associated with an OAUTH authorization seems to be immediately invalidated. The user is guided through the usual authorization process, he accepts the permissions, he is redirected to the right page which includes the access token, but as soon as my application tries to use the access token to get the user ID, an error is received instead: {"error":{"message":"Error validating access

Facebook full permission AccessToken alternative to Offline access token

徘徊边缘 提交于 2019-12-19 06:29:24
问题 Currently I am using desktop windows service to download my Facebook page insights/ page likes/friends etc. graph data . so, for that i have added app on my facebook page and generated full permission offline access token. so, using that i am downloading my facebook page insights properly from last one year. But, as Facebook deprecated offline acccess token. Please anyone can help me how i can generate Access Token with full permission to download my page insight data without signing in

Check if user is logged in with Token Based Authentication in ASP.NET Core

拟墨画扇 提交于 2019-12-18 19:14:05
问题 I managed to implement this token based authentication system in my application, but I have a little question. How can I check if a user is signed it (eg if the there is a valid token in the request) within the method? So with the [Authorize] ? So I have controller, and in that controller I want to check if the user is signed in. I thought of using this: if (_signInManager.IsSignedIn(ClaimsPrincipal.Current)) { ... } but it does not work since ClaimsPrincipal.Current is always null 回答1: You

Netsuite OAuth Not Working

一世执手 提交于 2019-12-18 17:09:53
问题 I've tried implementing Netsuite's OAuth Example, as illustrated here: https://netsuite.custhelp.com/app/answers/detail/a_id/42165. I've posted it directly below so you don't have to go to the page if you don't want. Unfortunately, it's not working. I know that I have the correct token and consumer key's and secrets, and the correct account ID. It's giving me a nice error though: {"error" : {"code" : "INVALID_LOGIN_ATTEMPT", "message" : "Invalid login attempt."}} I can look in my login audits

Spring OAuth2 - There is no client authentication. Try adding an appropriate authentication filter

血红的双手。 提交于 2019-12-18 12:18:54
问题 We have an application which is using spring-security-oauth2:1.0 . I was trying to change it to a newer version, spring-security-oauth2:2.0.7.RELEASE . Some classes were removed, some package structure is changed, I managed to sort out all those things and I was able to start the server without any issue. But I am facing a strange issue here. With OAuth2 - 1.0 version , when the user logs in we used to do a GET request on /oauth/token , For example : http://localhost:8080/echo/oauth/token

Android: How to get Refresh Token by Google Sign-In API?

元气小坏坏 提交于 2019-12-18 11:53:54
问题 Currently, I am working on the application where user able to login with Google. As part of the login process, we need to send Google ACCESS TOKEN and REFRESH TOKEN to server end. I am retrieving access token by the following method, mAccountName = googleSignInAccount.getEmail(); String scopes = "oauth2:profile email"; String token = null; try { token = GoogleAuthUtil.getToken(activity.getApplicationContext(), mAccountName, scopes); } catch (IOException e) { Logger.eLog(TAG, e.getMessage());

eBay oauth token and refresh tokens [closed]

可紊 提交于 2019-12-18 11:46:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . been struggling for couple of days with eBay token authentication. I am finding it hard to understand how to fetch new tokens, after signing up for a developer program account, I requested the key-set and got them, afterwards I grant access on Auth'n'Auth token which promises to last for 18 months, and yes the