basic-authentication

Basic Authentication does not work for Search API in Azure DEVOPS

牧云@^-^@ 提交于 2019-12-13 02:55:43
问题 Issue :Basic Authentication does not work for Search API in Azure DEVOPS API NAME : Work Item Search Results - Fetch Work Item Search Results API: POST https://almsearch.dev.azure.com/{organization}/{project}/_apis/search/workitemsearchresults?api-version=5.1-preview.1 Observation : it works fine when i use PAT (Personal Access Token) but does not when i use Basic Authentication in a REST Msg..I am doing all this in ServiceNow Error: Method failed: (/rahulreddy0193/rahul_1359/_apis/search

Basic Auth Header appears to be lost

半城伤御伤魂 提交于 2019-12-13 00:57:29
问题 I am writing a Flask RESTful server and an AngularJS client, and am running into an issue where it appears the username and password information are being lost in transmission, so to speak. In the Javascript console, I can tell that the client is sending the the Authorization header as expected: Authorization: Basic username:password . However, within the @auth.verify_password callback, they are both both empty. I have a fair bit of unit tests around the server portion of the code, and the

Basic Authentication at Grizzly Server

烂漫一生 提交于 2019-12-13 00:20:51
问题 I am using Jersey Grizzly and want to implement Basic Authentication to Grizzly. I create my grizzly server as follows: ResourceConfig rc = new PackagesResourceConfig("com.abc.de"); GrizzlyServerFactory.createHttpServer(BASE_URI, rc); at another class I have something like: @GET @Produces("text/plain") @Path("/description") public String getDescription() { String description = "probeDescription"; return description; } I don't know the difference and main concepts of jersey and grizzly. What

Basic Auth with Tomcat not working

梦想与她 提交于 2019-12-13 00:14:01
问题 I know that there are alot of topics about this. But I dont get my auth running... Here my code: tomcat-users.xml <role rolename="user"/> <user username="user" password="geheimu" roles="user"/> <role rolename="admin"/> <user username="admin" password="geheima" roles="admin,user"/> server.xml <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users

C# WebClient FormsAuthentication

…衆ロ難τιáo~ 提交于 2019-12-12 23:33:30
问题 EDIT: At the bottom . I've this site which uses a WebService. Authentication is enabled using this way : "How to: Implement Simple Forms Authentication". I've a WinForms application who cant connect to the WebService (because this one needs an authentication). There is an example how to perform this authentication between the WebService and the WinForms ? I heard about System.Net.HttpWebRequest, but I didn't find an example to use it . class CookieWebClient : WebClient { public

Preflight CORS requests with Basic Authentication in Angular 2

末鹿安然 提交于 2019-12-12 18:27:52
问题 I am building an Angular 2 app that needs to send a CORS (Cross-origin resource sharing) POST request with Basic Authentication (https://en.wikipedia.org/wiki/Basic_access_authentication) to the server. I am nicely setting the Authorization header for the POST request itself but as it is CORS, the browser first automatically sends the preflight OPTIONS request. Unfortunately the server is misconfigured (Why does the preflight OPTIONS request of an authenticated CORS request work in Chrome but

JQuery Ajax Basic Authentication Header doesn't work correctly

大兔子大兔子 提交于 2019-12-12 18:19:26
问题 I am trying to make a simple GET request on a Server in JQuery. $.ajax({ headers: { "Authorization": "Basic " + btoa("hello" + ":" + "world") }, url: "http://hello.world?Id=1", method: "GET", success: function () { }, }).then(function () { }); The Problem is that when the Request gets sent, the Authentication Header is not put into the request correctly: Host: hello.world User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 Accept: text/html,application/xhtml

Spring Security: Commence method in class extending BasicAuthenticationEntryPoint no being called

大兔子大兔子 提交于 2019-12-12 14:55:20
问题 I'm trying to do rest login from an android app to a web backend. In my web application: I have this class extending BasicAuthenticationEntryPoint: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.http.MediaType; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.www

iOS - Alamofire v2 Basic Auth not working

☆樱花仙子☆ 提交于 2019-12-12 13:08:12
问题 So I'm sending a basic auth request to Bing Image Search to grab some image data, and it was working great, right until I updated to the latest version of Alamofire (1.3 -> 2.0.2), which I had to do because 1.3 wasn't even close to compatible with XCode 7. Anyway, here is my code: let credentials = ":\(Settings.bingApiKey)" let plainText = credentials.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false) let base64 = plainText!.base64EncodedStringWithOptions

How to configure CORS and Basic Authorization in Spring Boot?

核能气质少年 提交于 2019-12-12 12:19:13
问题 I'm trying to configure CORS in a Spring boot application that already has Basic auth set up. I've searched in many places, including this answer, that points to Filter based CORS support in the official docs. So far no luck. My AJAX request is done this way. It works if done from same origin http://localhost:8080. fetch('http://localhost:8080/api/lists', { headers: { 'Authorization': 'Basic dXNlckB0ZXN0LmNvbToxMjM0NQ==' } } The AJAX request is done from a React app at http://localhost:3000,