authorization

Is there a way to “inject” a Basic Authorization header using the NetworkExtension framework?

与世无争的帅哥 提交于 2020-01-15 09:42:31
问题 I want to be able to provide credentials for a HTTP endpoint with the following constraints in mind No user interaction. The user shouldn't be prompted for a username/password. Credentials are to be managed by the app itself. Outside of an app's process. e.g. any request to the domain "foo.com" must have an Authorization Header defined. The device must not be supervised. Is something like this possible with the NetworkExtension framework? 来源: https://stackoverflow.com/questions/51178454/is

Is there a way to “inject” a Basic Authorization header using the NetworkExtension framework?

雨燕双飞 提交于 2020-01-15 09:41:10
问题 I want to be able to provide credentials for a HTTP endpoint with the following constraints in mind No user interaction. The user shouldn't be prompted for a username/password. Credentials are to be managed by the app itself. Outside of an app's process. e.g. any request to the domain "foo.com" must have an Authorization Header defined. The device must not be supervised. Is something like this possible with the NetworkExtension framework? 来源: https://stackoverflow.com/questions/51178454/is

Retrieving access token in controller

僤鯓⒐⒋嵵緔 提交于 2020-01-15 08:04:06
问题 I am developing an ASP .Net Core 1.1 MVC web app which calls a web API using the "Authorization Code Grant Flow". I am using Auth0 for the authentication server. Following the Auth0 tutorials, at the point the user has successfully logged in to the web app, and now does something that makes the web app call upon the web api, it says I should get the access token as follows: public async Task<IActionResult> Index() { string accessToken = User.Claims.FirstOrDefault("access_token")?.Value; if

How to form PHP curl request for the following command line?

ぃ、小莉子 提交于 2020-01-15 07:40:28
问题 Can someone help me to form this commndline request in PHP ? $ curl -u [USER:PASSWORD] https://subs.pinpayments.com/api/v4/meresheep/subscribers/7388.xml I have tried the following and getting only 'false' returned... // Query the user to pin payments for the details... $curl_url = "https://subs.pinpayments.com/api/v4/xyz-site/subscribers/32.xml"; //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT

Angular CORS simple request triggers preflight with Authorization header in POST

こ雲淡風輕ζ 提交于 2020-01-15 06:29:31
问题 The preflight is not supposed to happen for simple requests as per the documentation: https://developer.mozilla.org/en/docs/Web/HTTP/Access_control_CORS). This is indeed the case if I don't put the additional "Authorization" header in the request: "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Basic _base64_string_" Without "Authorization" header: :authority:www.target.com :method:POST //<----------------This is correct :path:/oauth2/access_token?client_id=xxx-xxx

Android AccountManagerFuture getResult gives IOEXcelption when trying to get authorization token

微笑、不失礼 提交于 2020-01-15 03:22:08
问题 I am following Nick example on getting an authorization token from a google account. I get stuck when calling AccountManagerFuture getResult . I'm working on my device (HTC desire) and with a local google app engine started from Eclipse. If I get connected onto the Internet with my cellphone I am able to get an authentication token. But I would like to do it locally off line. Do you know if I should get hooked up to the Internet to make it work? If not, it's not clear what the getResult

Google account authorization within an Android app

懵懂的女人 提交于 2020-01-14 08:16:10
问题 I'm writing an Android app that talks to a remote server, and I want to allow app users to log into the server by using the google credentials that reside on their phone, i.e. without requiring the user to enter their google password anywhere in my app. For example, if the user's (Android) phone has been configured with "someguy@gmail.com", and they then install and run my app, my app will present them with a dialog saying "Do you wish to sign in as someguy@gmail.com?", and upon hitting an Ok

Thinktecture identity server client selection and implementation

有些话、适合烂在心里 提交于 2020-01-14 03:15:39
问题 I am trying to get my head out of the clouds with identity server. I would like to implement the identity server project to let authenticate An ASP.NET MVC 5 application An ASP.NET Web API A windows service implementation Int this blog post I have read some details about clients. The author simply state: OAuth 2 provides several "grant types" for different use cases. The grant types defined are: Authorization Code for apps running on a web server Implicit for browser-based or mobile apps

Database independent row level security solution

三世轮回 提交于 2020-01-13 14:55:13
问题 does anybody knows about Java/C# database independent authorization library. This library should support read, write, delete, insert actions across company organizational structure. Something like this: - user can see all documents - user can enter new document assigned to his unit - user can change all documents assigned to his unit and all subordinate units. - user can delete documents that are assigned to him I should also be able to create custom actions (besides read, write,...) connect

Database independent row level security solution

不问归期 提交于 2020-01-13 14:55:08
问题 does anybody knows about Java/C# database independent authorization library. This library should support read, write, delete, insert actions across company organizational structure. Something like this: - user can see all documents - user can enter new document assigned to his unit - user can change all documents assigned to his unit and all subordinate units. - user can delete documents that are assigned to him I should also be able to create custom actions (besides read, write,...) connect