access-token

Having multiple Twitter instances with twitter4j library.

ⅰ亾dé卋堺 提交于 2019-12-01 02:56:59
问题 I need to be able to make different Twitter instances with same consumer key and secret but different user level access tokens . I have already obtained the access tokens for 10 users based on consumer credentials of my app by using standard Twitter OAuth Sign In protocol. Now, I want to create a list of Twitter Instances each initialized with a separate Accesstoken . However, I'm not able to do this. My leading cause of confusion is, that, I don't understand how Twitter4j instantiates

Renew long lived access token server side

人走茶凉 提交于 2019-12-01 02:37:39
问题 We are retrieving the long lived access token from facebook fine, however we need to renew this token automatically so that it does not expire every 60 days. Reading the documentation it says you can only exchange short lived tokens using the endpoint. As we don't have the short lived token, how can we do this server-side without having to manually re-authorize every 60 days? 回答1: it is not possible, to extend token endlessly. See Scenario 4 here https://developers.facebook.com/roadmap

Instagram access token to retrieve any user feed

萝らか妹 提交于 2019-11-30 23:25:40
Is it normal that I can get any users feed with the same access_token? Here are two examples. The first is from the test account, it is what I should have access to. And the second one is from the ImagineDragons's instagram feed. https://api.instagram.com/v1/users/510573486/media/recent?access_token=510573486.ab7d4b6.d8b155be5d1a47c78f72616b4d942e8d https://api.instagram.com/v1/users/20282699/media/recent?access_token=510573486.ab7d4b6.d8b155be5d1a47c78f72616b4d942e8d If so, why do I have to request an access_token in order to do the request? The token is required so the API cannot be accessed

Facebook - permanent user access token

冷暖自知 提交于 2019-11-30 20:42:19
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 token and update the token in my application. Is there any way to generate to permanent access token? or is ther any way to regenerate the token at my application level ( without showing login dialog box)? Is there

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

£可爱£侵袭症+ 提交于 2019-11-30 18:23:53
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 You don't need to use the SigninManager or something similar. The user is injected on the pipeline (on the User

ios Facebook SDK v4.x access token null despite being logged in via FBSDKLoginButton

萝らか妹 提交于 2019-11-30 18:19:55
My facebook access token is null despite the fact that the button shows that I'm logged in. Anyone know why this would be? From RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self->login_button = [[FBSDKLoginButton alloc] init]; self->login_button.center = self.view.center; [self.view addSubview:self->login_button]; FBSDKAccessToken* access_token =[FBSDKAccessToken currentAccessToken]; NSLog(@"Access Token, %@",access_token); } From ApplicationDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window =

Instagram access token to retrieve any user feed

删除回忆录丶 提交于 2019-11-30 18:06:08
问题 Is it normal that I can get any users feed with the same access_token? Here are two examples. The first is from the test account, it is what I should have access to. And the second one is from the ImagineDragons's instagram feed. https://api.instagram.com/v1/users/510573486/media/recent?access_token=510573486.ab7d4b6.d8b155be5d1a47c78f72616b4d942e8d https://api.instagram.com/v1/users/20282699/media/recent?access_token=510573486.ab7d4b6.d8b155be5d1a47c78f72616b4d942e8d If so, why do I have to

Performing Google Federated Login/oAuth2 after initial Authentication

半世苍凉 提交于 2019-11-30 17:33:25
I am trying to support "Hybrid" Federated Login and oAuth2 (using logic from this document ) for a webservice which will: support Sign in using your Google account on my site. That is, from the documentation: You can also choose to use Google's authentication system as a way to outsource user authentication for your application. This can remove the need to create, maintain, and secure a username and password store . Access the user's Google Analytics. Here are the steps I have done. I form my request to https://accounts.google.com/o/oauth2/auth with the scopes (Google Analytics) I want access

How can I configure the expiration time of an Azure AD access token (using ADAL)?

淺唱寂寞╮ 提交于 2019-11-30 17:11:10
问题 We use Azure AD to authenticate users into our WPF application, using their Office 365 accounts. This is done using the Active Directory Authentication Library (ADAL). Currently, they are prompted to log in every time they open the app. We want to change this to allow logging in to the app via a cached token. This works but we want to shorten the expiration time of the token to 24 hours or less, requiring another sign in after that time has passed. I don't see a way to manipulate the

Validating Azure AD Token signature fails JAVA

这一生的挚爱 提交于 2019-11-30 13:49:40
I am struggling to validate an Azure AD token signature. When I look up the correct key description in the "jwks_uri" field under https://login.microsoftonline.com/common/.well-known/openid-configuration I check the belonging key data . I try to use the "n" - modulus and "e" fields to generate the public key for the signature validation I end up with an error: BASE64Decoder decoder = new BASE64Decoder(); byte[] modulusBytes = decoder.decodeBuffer(n); byte[] exponentBytes = decoder.decodeBuffer(e); BigInteger modulusInt = new BigInteger(1, modulusBytes); BigInteger exponentInt = new BigInteger