authorization

Facebook, Check user authorization to app without prompt

岁酱吖の 提交于 2019-12-24 21:50:03
问题 I want to have a "remember me" access to my web app with facebook authorization, and check if the user has authorized my app without asking the user for permissions. I want to ask a new user from facebook for authorization only if the user starts the registration process not just to check for authorization in a first access. How can I do it? 回答1: This option is not available through the OAuth URL. I was using Facebook SDK for PHP and the solution is to use it in conjunction with the Facebook

php rest curl authentication header items missing

我们两清 提交于 2019-12-24 20:27:24
问题 I'am trying to send via curl a rest request with a header consisting of authorization key and api key. Therefore I build following curl call: $api_key = 'abc'; $token = 'xyz'; $authorization = 'Authorization: Bearer ' . $token; $api = 'Api_key: ' . $api_key; curl_setopt($curl, CURLOPT_HTTPHEADER, array($authorization, $api)); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data); curl_setopt($curl,

HttpSendRequest fails with error 12015

你说的曾经没有我的故事 提交于 2019-12-24 20:24:39
问题 I have created a Win32 Service which uses WinInet to send HTTP-requests to remote host. On my computer (WinXP SP2), on test workstations in our QoS-team (Win2003 Server) it works fine - over proxy and direct, proxy with auth and without). But some of our customers, that uses this service and_proxy_with_authorization on Win2003 Server, have a problem - all calls of HttpSendRequest fails and GetLastError returns 12015 (ERROR_INTERNET_LOGIN_FAILURE, The request to connect and log on to an FTP

Integrate additional non-standard identity provider?

拥有回忆 提交于 2019-12-24 20:00:19
问题 App Service uses federated identity, in which a third-party identity provider manages the user identities and authentication flow for you. Five identity providers are available by default. The documentation states that you can also integrate another identity provider. The App Service documentation on authentication and authorization, here: https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization states that besides the Identity providers which are pre

Share Action with Authorized and Unauthorized User in ASP.NET MVC Controller

核能气质少年 提交于 2019-12-24 18:05:39
问题 I have an ASP.NET MVC app that with a controller. All of the actions in this controller can be accessed by anonymous users. However, if the user is authenticated, I want to do something special in the action. Currently, I've noticed that no matter what, User.Identity.IsAuthenticated is always false in the context of this action. Here is my code: public class MyController : Controller { public ActionResult GetProfile(string id) { if (User.Identity.IsAuthenticated) { ViewBag.ShowAuthStuff =

How to view an image outside of web root?

独自空忆成欢 提交于 2019-12-24 15:08:33
问题 I have a .png that I want to embed on a particular page. This .png is outside of the web root, but we have a module in our system that allows users to view that image on a separate page. I found that I can use an iframe to view the .png on some browsers, but sometimes there is an authorization issue or when trying to print the page the image doesn't load through the iframe. I tried PHPs readfile(), but then I just have another authorization issue. I find the authorization issue odd since one

Django Permissions for Different Clients

依然范特西╮ 提交于 2019-12-24 14:28:24
问题 I'm working on a Django project which will take on firms as clients and each client will be allowed to create multiple users. These users can then be assigned different permissions or roles. The catch being that the type of permissions vary with clients i.e. they're not as simple as read, write, delete. Hence one client can have only 5-10 types of permissions while the other can have 100's. The inbuilt Django permissions framework does not directly support my usecase, so this is what I came

Satellizer and angular.js not sending token in header

纵饮孤独 提交于 2019-12-24 13:43:16
问题 I am working with angular.js and satelizer to do JWT Authentication on a REST API. The authentication works fine and the page is sending the authorization header within 3 states. Here is my state provider: $stateProvider .state('auth', { url: '/auth', templateUrl: '/views/login.html', controller: 'AuthController as auth' }) .state('dashboard', { url: '/dashboard', templateUrl: '/views/dashboard.html', controller: 'DashboardController as dash' }) .state('mitglieder', { url: '/mitglieder',

Auth repeats controller in URL

岁酱吖の 提交于 2019-12-24 13:42:38
问题 I am setting for the first time the Auth component on my site, and everything seems to work fine except when I try to access a restricted page. Instead of being redirected to http://localhost/MySite/users/login , I get redirected to http://localhost/MySite/users/users/login , the controller name is repeated on the url. How can this issue be fixed? I am using CakePhp 2.4.4 AppController class AppController extends Controller { public $components = array('DebugKit.Toolbar', 'Session','Auth' =>

Google Oauth IMAP asking for permission everytime

本小妞迷上赌 提交于 2019-12-24 12:04:00
问题 I'm currently working on a web-based mail-service (it's not quite a mail-client but it's a lot to explain). However I've never worked with oauth before this but it seems like the way to go, I've based my simple classes on the sampel code. However the sample code doesn't provide the solution on signing in several times, or I've missed it. So basically my problem is that everytime I log in I need to authorize to gmail again while I've seen other services where you do that once and after that