oauth

Spring Oauth password grant with FB login

狂风中的少年 提交于 2019-12-25 03:26:42
问题 I've a Spring backend with Spring OAuth2 and Angularjs client. Plain username/password password grant is no brainer. But what happens when I want the user also to be able to login with another oauth provider such as FB. I imagine the following flow: First retrieve FB access token from the angular client. Post that token somehow as a password grant request to the spring endpoint From backend fetch userId using the token from FB. Find user with same fb userId. If found create securityContext

PrincipalExtractor and AuthoritiesExtractor doesn't hit

ぃ、小莉子 提交于 2019-12-25 03:22:55
问题 I have a project with Spring security and Oauth2. On the resource server I have the following configuration: @Configuration public class SecurityConfiguration extends ResourceServerConfigurerAdapter { @Override public void configure(final HttpSecurity http) throws Exception { http.antMatcher("/**") .authorizeRequests().antMatchers("/info", "/health", "/h2-console/**").permitAll() .anyRequest().authenticated() .and().headers().frameOptions().disable(); } } I have the following extractors:

Is sign in with Google being replaced with sign in with Google+?

谁说胖子不能爱 提交于 2019-12-25 02:38:22
问题 I've been asked to implement sign in with Google so that users with Gmail accounts have an easier time signing in. In my research I found this time table that suggests that it's a better idea to implement sign in with Google Plus . Does that mean that 1) sign in with Google(with out having a google plus account) is going away? 2) users that do not have a Google plus account are forced to sign up to use new sign in with Google auth system? "If your app authenticates users by any means other

Linkedin Application has OAuth User Token and OAuth User Secret, Do they Expire?

北城以北 提交于 2019-12-25 02:32:11
问题 We have 4 fields in Linkedin on creating a application. API Key: Secret Key: OAuth User Token: OAuth User Secret: Need to confirm if OAuth user Token and OAuth User Secret expire after 60 days 回答1: Yes, the user tokens expire in 60 days. Here is how to refresh them LinkedIn Refresh Access Token 来源: https://stackoverflow.com/questions/17593081/linkedin-application-has-oauth-user-token-and-oauth-user-secret-do-they-expire

Trouble capturing activity result when firing Intent received from AccountManagerFuture

烂漫一生 提交于 2019-12-25 02:03:43
问题 I am trying to follow Authenticating to OAuth2 Services and implement the part where an Intent is included in the Bundle provided by the AccountManagerFuture#getResult() call. The issue is, that even though the docs say to use Activity#startActivityForResult(...), the Intent I am told to fire apparently starts in its own task, resulting in onActivityResult being called immediately. Another part which I am uncertain I am doing correctly is the way I launch this Intent. Because the code that

Google fit API OAUTH Issue

不问归期 提交于 2019-12-25 01:39:59
问题 I'm trying to build a step counter application, as a test i downloaded the android fit code from github and ran the basicsensorsAPI: googlesamples/android-fit In order to get stepcount instead of location I changed the data type to TYPE_STEP_COUNT_CUMULATIVE and TYPE_DERIVED , (the orignials are TYPE_LOCATION_SAMPLE and TYPE_RAW ). But as soon as I do this the OAUTH stops working, and i'm not sure why this is creating an issue. Here is the changed code: private void findFitnessDataSources() {

Twitter APIs : update working, but filter does not

不问归期 提交于 2019-12-25 01:23:31
问题 Twitter APIs : update working, but filter does not javascript twitter oauth twitter-api jsoauth In the following code, I instantiate an instance of OAuth from the jsOAuth library by bytespider // jsoauth API reference: // http://bytespider.github.com/jsOAuth/api-reference/ var twitter = new OAuth(oauthOptions); //authentication occurs console.log('url: ' + url); console.log('data: ' + JSON.stringify(data)); twitter.post( url, data, success, failure ); When I access the stream: url: https:/

Why does this twitter oauth API token request fail

岁酱吖の 提交于 2019-12-25 01:21:39
问题 [Note: all oauth tokens/secrets below were created randomly; they are NOT my actual tokens/secrets] curl -o /tmp/test.txt 'https://api.twitter.com/oauth/request_token? oauth_timestamp=1345141469& consumer_key=UEIUyoBjBRomdvrVcUTn&oauth_access_token_secret=YePiEkSDFdYAOgscijMCazcSfBflykjsEyaaVbuJeO&oauth_access_token=47849378%2drZlzmwutYqGypbLsQUoZUsGdDkVVRkjkOkSfikNZC&oauth_nonce=1345141469& consumer_secret=rUOeZMYraAapKmXqYpxNLTOuGNmAQbGFqUEpPRlW& oauth_version=1%2e0& oauth_signature_method

Using passport and OAuth with connect-redis

冷暖自知 提交于 2019-12-24 21:18:30
问题 I am trying to use passport-twitter and passport-facebook for authentication in an app that is using Redis for Express sessions. If I remove the connect-redis for storing sessions in express, everything works fine, but with the Redis sessions, I get the following error: Error: OAuth authentication requires session support | at Strategy.OAuthStrategy.authenticate My code is below: app.configure(function(){ app.set('port', process.env.PORT || port); app.use(express.favicon()); app.use(express

How to create signature for twitter in Salesforce and what are the steps for signature creation

三世轮回 提交于 2019-12-24 21:15:01
问题 I need a signature for my first request to twitter : My code create a Post request for this end Url https://api.twitter.com/oauth/request_token and I have to set a header which is mention below in which I need signature. I have only call back Url, consumer_key. I have created nonce and timestamp. I need signature. Authorization Header: OAuth oauth_nonce="XXXXXXXXX", oauth_callback="XXXX", oauth_signature_method="HMAC-SHA1", oauth_timestamp="XXXXXX", oauth_consumer_key="XXXXXX", oauth