access-token

Azure AD Configurable Token Lifetimes not being Applied

こ雲淡風輕ζ 提交于 2019-12-07 20:08:26
问题 I want to change the default token lifetimes in Azure AD as shown here, but it looks like the changes are not being applied. I am running the following commands using the PowerShell cmdlets in the AzureAdPreview module from the PowerShell Gallery: New-AzureADPolicy -Definition @("{`"TokenLifetimePolicy`":{`"Version`":1, `"AccessTokenLifetime`":`"10:00`",`"MaxInactiveTime`":`"10:00`",`"MaxAgeSingleFactor`":`"10:00`",`"MaxAgeMultiFactor`":`"10:00`",`"MaxAgeSessionSingleFactor`":`"10:00`",`

Are OAuth2 bearer tokens signed?

冷暖自知 提交于 2019-12-07 18:52:17
问题 It may be a stupid or naive question, but: Are OAuth2 bearer tokens signed? To put it in other words: Is the consumer able to verify whether the bearer token was issued by a specific authorization server? 回答1: No. But there are efforts under way to fix this. HTTPS ensures the token was transmitted securely, but it doesn't tell you who issued the token. 回答2: Actually you have to use oauth over https which is going to be responsable of signing 来源: https://stackoverflow.com/questions/16065497

Facebook SDK getAccessToken() problems

≡放荡痞女 提交于 2019-12-07 17:07:21
问题 I have been having some trouble with the facebook SDK, specifically retrieving an access token. The App is set up on Facebook correctly and has been given permission. As far as I can tell, the code is correct and I am not sure what is going wrong with getAccessToken(). $facebook->getAccessToken(); is returning "12345678|abcdefghijklmnop" , basically some kind of variable which is made up of the App ID and Secret ID separated by a | $facebook->getUser(); is returning ' 0 ' <?php require_once(

Strange Access Token returned from Facebook

ぃ、小莉子 提交于 2019-12-07 14:18:33
问题 I have been working on Facebook app and I have been using Facebook Graph Toolkit for months and all the while, MY CODES are working (I can get Access Token, and I can use them to retrieve Facebook user details, publish news feed, etc) Now, there's new problem arise that I never expect it to happen and didn't know what is wrong with Facebook! I have been following my old set of codes and discovered that Facebook now returns back Access Token that is not in this format (which is the correct

You need to authorize access before proceeding

安稳与你 提交于 2019-12-07 13:53:12
问题 i'm trying to upload video on you tube using my application. i'm using google-api-php-client for uploading video <?php // Call set_include_path() as needed to point to your client library. set_include_path("google-api-php-client/src/"); require_once 'Google/autoload.php'; require_once 'Google/Client.php'; require_once 'Google/Service/YouTube.php'; session_start(); /* * You can acquire an OAuth 2.0 client ID and client secret from the * {{ Google Cloud Console }} <{{ https://cloud.google.com

Facebook - how to get permanent user access token [duplicate]

只谈情不闲聊 提交于 2019-12-07 10:25:04
问题 This question already has answers here : Facebook - permanent user access token (3 answers) Closed 6 years ago . My company has a corporate facebook account where they post event pics in different albums. My requirement is to get all the photos from facebook albums and show in our corporate website. I am able to fetch the photos but the user access token is valid only for 60 days which means every other two months i will have to login into company's corporate facebook account, regenerate the

OAuth2 Refresh Token. How to store it on client-side

拈花ヽ惹草 提交于 2019-12-07 09:13:36
问题 There is Authorization OAuth2 Server to get access+refresh token . As far as i understand, access token can be stored on client-side , because it has short live circle. But can refresh token be stored there? According information that I've read, there is no secure way to do it(here) So, I have to implement separate server-side service, just to store refresh token . Am I right? Is it only one possible way to store refresh token ? P.S. Client-side: angularJS 回答1: Yes you are right. If you

Internal_failure while getting refreshtoken using code?

眉间皱痕 提交于 2019-12-07 07:14:47
问题 We are getting internal_failure error message while exchanging code to get refresh token. This error doesn't occur all the time for all the accounts. This happens only while authenticating with a few Google accounts and that too like 5 to 6 failures for every 10 authentication requests no matter what the client_id is. We have a test account and is reproducible too frequently in this account as well. { "error" : "internal_failure" } 回答1: How often are you making these requests? You are

What happens when response fails to reach the client in a token authenticated API?

老子叫甜甜 提交于 2019-12-07 06:58:20
问题 This explains how token authentication works in rails when this lib is used. But, if this (as shown in image below) happens, should I sign-in again to get a new valid token that can be used for the next request? This doesn't seem so good as network failure might often happen; isn't there a simple "RETRY" way? EDIT: The server would accept the retry request, if it reaches within 5 seconds since the previous one, essentially treating it as a batch request . However, this wouldn't help solve my

Django rest auth with Allauth

て烟熏妆下的殇ゞ 提交于 2019-12-07 04:58:57
问题 I have implemented django rest auth with Allauth and its working fine if I login through google access_token but there is a case when some client device need to login by google id_token . I am getting error if I use id_token instead of access_token { "non_field_errors": [ "Incorrect value" ] } please help me out 回答1: Update your files like ../allauth/socialaccount/providers/google/provider.py : class GoogleProvider(OAuth2Provider): .... def extract_uid(self, data): try: return str(data['id'])