authorization

PHP REST API Authorization for client applications [duplicate]

浪子不回头ぞ 提交于 2019-12-12 05:36:59
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Restful API authentication recommendation? I'm writing an API in PHP and it opted to use Respect/REST. This is not a public API, ie, only authorized client applications can consume there. And this is where I would like some idea of how to guarantee the security of information that the API handles. The client applications can be written in any language, but as I said, they should be allowed to use the API. At the

Redirecting to a web page from another web page by clicking the hyperlink along with token attached

回眸只為那壹抹淺笑 提交于 2019-12-12 05:30:40
问题 I have a scenario where I have a person who tries to access the url of my webpage (Which is written in ANGULARJS) from his webpage. My webpage is token protected. While the person clicks on the hyperlink from his webpage, he will send a token along with the click. I should then redirect to home page instead of login page in case he sent me a correct token. Question 1: How to get the token that the person sent while redirecting to my webpage? Question 2: Usually I have a login page and in case

Dropwizard customAuthorizationFilter with DynamicFeature

牧云@^-^@ 提交于 2019-12-12 05:04:48
问题 I have followed all the steps given in Answer by pandadb in below link How to Optionally Protect a Resource with Custom Dropwizard Filter I added my custom annotaion to the resource method but the custom authorisation filter is not being called. can anyone tell me what i might have missed. Update:- I am using dropwizard 1.0 using java8 and building the app using maven. 回答1: First of all check this Dropwizard Feature example and Dropwizard Authorization. Then please provide more details, what

POST Request in Objective-C with Lyft API Access Token

寵の児 提交于 2019-12-12 04:32:10
问题 I'm encountering an issue in retrieving my access token for the Lyft API via an Objective-C POST request (I'm pretty new to POST requests). The Lyft API documentation details this as an example request: POST /oauth/token HTTP/1.1 Authorization: Basic base64(client_id:client_secret) Content-Type: application/json;charset=UTF-8 { "grant_type": "authorization_code", "code": "<authorization_code>" } This is the curl request from their documentation: curl -X POST -H "Content-Type: application/json

Using Devise to create private profiles

白昼怎懂夜的黑 提交于 2019-12-12 04:27:43
问题 I am currently trying to create private user profiles using the Devise gem. So far I have the sign up, login, sign out and edit profile functionality working. The problem is that when a user signs in he is able to see all other users by typing into the url users/[username]. I am relatively new to rails so I am still figuring out how to work with sessions. So the quesiton is how do I limit a user's access to parts of a site that are specific to other users? And even better, is this easily done

ASP MVC 5 Logged in User can still access Login and Registration Pages?

本小妞迷上赌 提交于 2019-12-12 03:49:18
问题 I have an ASP MVC 5 application and I've noticed that logged in user can still access the registration and login pages. I've also noticed that when a logged in user tries to access a controller action to which they are not authorized, they are redirected to the login page. This is confusing because the user is already logged in. How do I fix this so that unauthorised redirects to some other 401 error page or view. 回答1: On registration/login page, you can redirect logged users : // GET:

Facebook SDK 3.0 Android login custom title bar disappears

随声附和 提交于 2019-12-12 03:45:01
问题 When I'm launching the login/register Facebook Activity using the openSession method the application title bar (we're using a custom one) disappears and another one appears. Is there a way to set the custom bar for the new Activity as well? The way I'm calling the Facebook authorization: fb.openSession(this, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { Logger.d(LOGTAG, "Session moved to state " + state.name()); if (null

Android: Balancing market presence, API function availability, and approach to cleint/server authentication

可紊 提交于 2019-12-12 03:41:56
问题 I want to use Google Play Services so that I can access Google Saved Games API which allows me to seamlessly obtain authorisation tokens using Games.getGamesServerAuthCode(...) for secure server authentication on my server back end. However this function is only available through Google Play Services r29 which requires at least Android 6.0. On the other hand my actual game only requires at least Android 2.3.1. I'm a little concerned that according to this website Android 6.0 is only available

Android Pusher Request Body implementation in HttpAuthorizer

懵懂的女人 提交于 2019-12-12 03:39:55
问题 I am new to Pusher. I had successfully implemented public channel subscription in my app. I am currently stuck at Android private channel subscription. We are supposed to pass request body parameters in post endpoint of our server. In my iOS application, We are creating custom Authorizer to send the request body in the PusherOption. But in Android there are only 2 options to send parameters in PusherOptions like setHeaders() and setQueryStringParameters(). I have to send following body with

Google App Engine: “The backend is locked down”

空扰寡人 提交于 2019-12-12 03:29:30
问题 I am trying to test out the Google App Engine. I have created an appspot domain, downloaded the sample project and put in all credentials required. I have also enabled Google Cloud Messaging for Android. When I hit the send button (in the samples GuestBookActivity), I get the message: "The backend is locked down. The administrator can change the authentication/authorization settings on [my appspot domain]". Does anyone know about this issue and how to resolve it? 回答1: As @Peter Knego said,