basic-authentication

Retrofit2 Unauthenticated 401 error when using rxjava2

谁说我不能喝 提交于 2019-12-14 03:48:59
问题 Ever since i'v integrated RxJava2 , i am receiving 401 unauthenticated error in all retrofit calls that return Observable , i'm using basic authentication and i know error is due to it , but why it works on debug but not release. In my opinion something is wrong with the configuration for rxjava adapters of retrofit2 Stack Trace: com.jakewharton.retrofit2.adapter.rxjava2.HttpException: HTTP 401 Unauthorized 01-22 19:24:14.872 11502-11502/? W/System.err: at com.jakewharton.retrofit2.adapter

AJAX POST Request Hide Basic Auth Credentials

*爱你&永不变心* 提交于 2019-12-14 02:05:52
问题 I've been researching ways to send AJAX POST requests to my API and I'm trying to understand how to pass basic auth credentials correctly. Interface API https://www.example.com/app/ -------> https://api.example.com/ Using this example I found on StackOverflow--couldn't anyone view the source of the JS, see my username and password in cleartext, and have access to all my API functions? If so, how do I pass my username and password without showing it to the world? $.ajax({ url: 'yoururl',

Use WCF Service with basic authentication user

家住魔仙堡 提交于 2019-12-13 21:16:09
问题 We are working on a pretty standard website that uses a WCF service to retrieve data from a database. The Website (ASP.Net MVC) has a Service reference to the WCF Service The WCF Service has access to the database We need to enable basic authentication on the site as part of our requirements. When we enable it on the site, and leave it disabled on the WCF service, the site asks for the credentials but the SQL Server throws an error saying that the login failed for the user 'NT AUTHORITY\IUSR'

Weblogic server BASIC Authentication not prompting for username

一个人想着一个人 提交于 2019-12-13 16:15:22
问题 I created a very simple Weblogic 10.3.5 web application with BASIC Authentication that for some reason doesn't prompt for the username and password. I believe the web.xml and weblogic.xml are created properly. The entire application is below. It consists of two files: index.html -- that anyone should be able to load remoteuser.jsp -- that only people in 'group' should be able to load I added an <auth-constraint> for all JSPs (*.jsp), such that only users in 'group' should be able to load them

How to test or bypass Basic Auth in Rails 5 testing of controllers

谁说胖子不能爱 提交于 2019-12-13 14:12:47
问题 I would like to test controllers in Rails 5 for which Basic Authentication is activated. The way explained in the current official instruction (as of 2018-10-14) does not work for some reason. The Q&A "Testing HTTP Basic Auth in Rails 2.2+" seems too old for Rails 5 (at least for the default). Here is a simplified example to reproduce the case. I made an Article model and related resources by scaffold from a fresh install of Rails (latest stable version 5.2.1): bin/rails g scaffold Article

JaxWS: Webservice with Basic Authentication

久未见 提交于 2019-12-13 12:18:59
问题 I'm building a client for a SOAP webservice. I auto-generated most of the client code with IntelliJ IDEA, by telling it to build a JaxWS webservice client from a WSDL. The webservice runs on different URLs (test, integration, production), so I need to be able to configure the service URL in my client. My code looks like this: String urlString = props.getProperty(URL); service = new RequestMultiTransportService(new URL(urlString), new QName("http://some.uri.com/", "RequestMultiTransportService

Creating a generalized HTTP Authentication function [closed]

喜夏-厌秋 提交于 2019-12-13 09:08:14
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I am using the script below to login to get the xml data. Is there away that I can use the same login script but change the $oPMainUrl when required?

Multiple user details services for different endpoints

孤者浪人 提交于 2019-12-13 08:57:47
问题 I am building a REST API using Spring and am currently authenticating all my requests using a custom user details service and this configuration code: @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().authenticated().and().httpBasic(); } I am also setting up a DaoAuthenticationProvider to use the my user details service and using that to configure global security. Now, I want to provide an endpoint that (while still secured with

http basic authentication - maximum allowed trial times?

夙愿已清 提交于 2019-12-13 05:14:46
问题 I am working on a login section for a new project, which definitely requires user authentication. The easiest way of doing that I assume would be using the http basic authentication. I implemented it fine on the Apache server, ssl was also intorudced to provide better security. However, one thing concerns me, that it seems the basic authentication wouldn't stop no matter how many times a user failed to provide a valid username/password crentential. It would just keep asking... I reckon, since

Powerbuilder call WebService with BasicAuthentication

天大地大妈咪最大 提交于 2019-12-13 03:23:59
问题 I am using PB 11.5.1 (Classic) and I want to pass an XML to a WebService that uses BasicAuth. I cannot find how to implement the BasicAuth. I have searched forums/blogs but I found no clear answer if it is even possible. Any help appreciated 回答1: Perhaps you can use an oleobject which uses MSXML.ServerXMLHTTP : // args: as_username, as_password, as_basicauthstring oleobject lole_http string ls_response lole_http = create oleobject lole_http.ConnectToNewObject("msxml2.ServerXMLHTTP") lole_http