basic-authentication

Kubernetes NGINX Ingress: Disable Basic Auth for specific path

不羁的心 提交于 2021-01-29 07:53:40
问题 I want to disable basic auth only on a specific subpath of my App. How this can be done? e.g. All subpaths should be basic auth secured: / This path should be an exception and public reachable: /#/public ingress.yaml apiVersion: extensions/v1beta1 kind: Ingress metadata: name: app labels: app: app annotations: kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" ingress.kubernetes.io/auth-type: basic ingress.kubernetes.io/auth-secret: basic-auth ingress.kubernetes.io/auth-realm:

Http request with basic auth java

匆匆过客 提交于 2021-01-27 15:04:46
问题 I am trying to access an API via httpGet with basic auth. My code is: byte[] encodedBytes = Base64.getEncoder().encode("user:pass".getBytes()); HttpGet httpget = new HttpGet("https://app.feedcheck.co/api/reviews"); httpget.setHeader("Authorization", "Basic " + encodedBytes); System.out.println("executing request " + httpget.getRequestLine()); HttpResponse response = httpClient.execute(httpget); HttpEntity entity = response.getEntity(); String apiOutput = EntityUtils.toString(entity); System

Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication

你离开我真会死。 提交于 2020-12-17 18:38:27
问题 I have the following code in Google Apps Script which retrieves CSV data from a webpage via HTTP using basic authentication and places it into a spreadsheet: CSVImport.gs function parseCSVtoSheet(sheetName, url) { // Credentials var username = "myusername"; var password = "mypassword"; var header = "Basic " + Utilities.base64Encode(username + ":" + password); // Setting the authorization header for basic HTTP authentication var options = { "headers": { "Authorization": header } }; // Getting

Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication

泄露秘密 提交于 2020-12-17 18:37:20
问题 I have the following code in Google Apps Script which retrieves CSV data from a webpage via HTTP using basic authentication and places it into a spreadsheet: CSVImport.gs function parseCSVtoSheet(sheetName, url) { // Credentials var username = "myusername"; var password = "mypassword"; var header = "Basic " + Utilities.base64Encode(username + ":" + password); // Setting the authorization header for basic HTTP authentication var options = { "headers": { "Authorization": header } }; // Getting

Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication

半腔热情 提交于 2020-12-17 18:37:16
问题 I have the following code in Google Apps Script which retrieves CSV data from a webpage via HTTP using basic authentication and places it into a spreadsheet: CSVImport.gs function parseCSVtoSheet(sheetName, url) { // Credentials var username = "myusername"; var password = "mypassword"; var header = "Basic " + Utilities.base64Encode(username + ":" + password); // Setting the authorization header for basic HTTP authentication var options = { "headers": { "Authorization": header } }; // Getting

Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication

被刻印的时光 ゝ 提交于 2020-12-17 18:36:41
问题 I have the following code in Google Apps Script which retrieves CSV data from a webpage via HTTP using basic authentication and places it into a spreadsheet: CSVImport.gs function parseCSVtoSheet(sheetName, url) { // Credentials var username = "myusername"; var password = "mypassword"; var header = "Basic " + Utilities.base64Encode(username + ":" + password); // Setting the authorization header for basic HTTP authentication var options = { "headers": { "Authorization": header } }; // Getting

Rest API under https security

好久不见. 提交于 2020-12-13 03:18:14
问题 I am new and need directions so I can ask the correct questions. Here's the deal: I have developed a REST API under HTTPS. The user must provide a valid token to use the API. The token expires after not being used for more than 5 minutes. To obtain the token, the client must call the authentication API passing his private primary or secondary key, along with his user number. Each key is unique, and on the database I save it's hash. The user passes his primary or secondary key through the

Rest API under https security

情到浓时终转凉″ 提交于 2020-12-13 03:17:38
问题 I am new and need directions so I can ask the correct questions. Here's the deal: I have developed a REST API under HTTPS. The user must provide a valid token to use the API. The token expires after not being used for more than 5 minutes. To obtain the token, the client must call the authentication API passing his private primary or secondary key, along with his user number. Each key is unique, and on the database I save it's hash. The user passes his primary or secondary key through the

Adding 'Authorization' header causes Spring Security to secure a permitted endpoint

♀尐吖头ヾ 提交于 2020-12-12 09:22:23
问题 So, I have this in my WebSecurityConfigurerAdapter public class ApiWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http // Use this configuration for endpoints starting with 'api' .antMatcher("/api/**") // Do not secure endpoints receiving callbacks .authorizeRequests().antMatchers(""/api/v1/notification").permitAll() // Allow only users with role "ROLE_API" .anyRequest().hasRole(Users.UserRoles

PHP consume soap service using Basic auth

我是研究僧i 提交于 2020-12-06 12:36:47
问题 I have a server that connecting to it using CURL is only possible using curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); Now i need to connect to the same server using SOAP How is it possible to set basic authentication to soapclient ? Thanks 回答1: php-soap has a limitation/bug, which does not allow to retrieve the WSDL while using Authentication (bug report) You can update/upgrade your PHP version. There are people reporting that this bug is solved on 5.4.8 version. To keep php-soap you must