Where can I find Quarkus security-ldap-quickstart? - security

I was reading the Quarkus Security LDAP guide at https://quarkus.io/guides/security-ldap and I would like to look at the recommended solution.
However, when I try to lookup the address which is given in the article (https://github.com/quarkusio/quarkus-quickstarts/tree/main/security-ldap-quickstart), I get a 404.
Furthermore, the solution cannot be found in the list of quarkus-quickstarts at https://github.com/quarkusio/quarkus-quickstarts.git
What happened to it ? Is it stored somewhere else now ?

You are absolutely right, it looks like it's missing and I can't find any trace of it in the pending pull requests.
Could you create an issue in our tracker (https://github.com/quarkusio/quarkus) so that I can ping the appropriate persons there?

Related

How can I create a simple web proxy server?

Basically the use-case is this:
Open a website > receiving the content from other website (and interacting with it like if it was the original link), so not just html but being able to log in, etc.
The thing is: I want to use my server as a bridge/proxy. (Like https://www.croxyproxy.com/ or https://www.proxysite.com/). For example: let's say I go to https://whatismyipaddress.com/, instead of seeing my real ip, I would like to see my server's ip.
How can I accomplish that? Please help me clarify the approach (and what stack can I use). I'm totally lost after googling a lot, so far I've found this:
http://greim.github.io/hoxy/
https://github.com/Athlon1600/php-proxy-app
https://github.com/mswjs/http-middleware
Thanks a lot in advance.

Save column of numbers from url to python array

I want to save the data column from this url to an array in python. I tried it with, for instance, pandas.save_table:
import pandas as pd
pd.read_table('https://adventofcode.com/2019/day/1/input', sep='')
but I get HTTPError: HTTP Error 400: Bad Request and I think this is not the right way to do that.
Can someone help me with that?
If you try to open the link in your question (in a browser using incognito mode or something similar i.e. delete your cookies) you'll see that you need login into the website to access the page. This is why the you're getting a 400 Bad Request error as a response from the server.
From the FAQ section of the website that you're trying to access:
How does authentication work? Advent of Code uses OAuth to confirm
your identity through other services. When you log in, you only ever
give your credentials to that service - never to Advent of Code. Then,
the service you use tells the Advent of Code servers that you're
really you. In general, this reveals no information about you beyond
what is already public; here are examples from Reddit and GitHub.
Advent of Code will remember your unique ID, names, URL, and image
from the service you use to authenticate.
The website uses OAuth to handle logins to the url that you create will need these access tokens. You can use a library like python-oauth2 to help you with this (there are others so you can read around and decide which you'd like to use). Creating and understanding how to make http requests is beyond the scope of this answer. I'd suggest you have a look around on the internet for some explanations and try again, if you have get stuck please ask another question. Otherwise it'll probably be easier to save the file from your browser...But I'll leave this answer here for the next person who runs into the same problem.

How to lookup Github issue by ID instead of :user/:repo/issues:/number

The documentation shows that issues can only be requested with a known user, repo and issue number but I only have the issue's ID.
Repositories can be requested by ID as shown in this implementation KnpLabs/php-github-api/pull/579.
Is there any way to request an issue by its ID only?
I was hoping issues could be requested like so https://api.github.com/issues/123456.
Only the issue number is publicly exposed.
The issue ID is not, unless you are using:
the GHTorrent project (for public repos)
a BigQuery for GitHub
Both would help finding the issue number based on the issue query, but that is certainly not as straightforward as a https://api.github.com/issues/<ID>...

Getting all GitHub users through github-api

The GitHub API documentation says that the url
https://api.github.com/users
will give all users in the order they signed up, but I only seem to get the first 135.
Any ideas how to get the real full list?
Please use since parameter in your GET request.
https://api.github.com/users?since=XXX
Probably it's done this way to limit the resources needed to handle such request. Without such limit it's just asking for DoS attack.
If you check the response headers for that request Github provides pagination links under the header Links
Link: <https://api.github.com/users?since=135>; rel="next", <https://api.github.com/users{?since}>; rel="first"
I believe since their api v3 Github has been moving towards a hypermedia api.
Github Hypermedia API
EDIT
This is beyond the scope of this question but its related. To learn more about hypermedia API and REST. Take a look at these slides by Steve Klabnik
http://steveklabnik.github.com/hypermedia-presentation/#1
Both of the existing answers are 100% correct, but I would advise you to use a wrapper for whatever language you happen to be doing this in. There are plenty of them and there is an official one for ruby (Octokit). Here is a list of all of them.
You can filter on type:user like this:
https://api.github.com/search/users?q=type:user
See Also: GitHub API get total number of users/organizations

What does it means &sa=U&ei?

I have a website, today looking at the log, I found some request to a page from my server with appended this variable &sa=U&ei.
Could you tell me guys what &sa=U&e could mean? Could be an attempt to find Nullable Scrips? Could be a security threat?
&sa=U&ei=XuRBT92UFseYhQf_w7HeBQ&ved=0CNYBEBYwYw&sig2=Rt1Cr_FCPD1-6VYu__Oavg&usg=AFQjCNFlHVaDQL--kgDbOn2vNgUqwUOsTA
The error in my log is:
A potentially dangerous Request.Path value was detected from the client (&)
http://www.bleepingcomputer.com/forums/topic442637.html
But nevermind. I found the offending culprit. Seems that for some
reason my "GoogleEnhancer" became "incompatible" with Firefox. It
worked fine even before I updated to 10, but go figure. And it wasn't
the whole add-on, it was the "Use Google Classic" radio button turned
on. I got this add-on after Google started making their search engine
so... oh, what's the word I'm looking for... umm... oh, yeah...
crappy!
http://www.ausforces.com/showthread.php?6595-Google-is-acting-odd...
I figured out what it is... I have an add-on called google enhancer
which obviously hasn't been updated properly of late. Disabled it and
it worked fine. Well that was a waste of a thread. Thanks for the help
though guys.
So, the unnecessary part of the request is created by an outdated add-on for Firefox, nothing serious. The visitors with that add-on have more problems than your website :)
Practically, it could just be simple url request.
And the random texts you are seeing could be an autogenerated random string to maintain sessions. As there seems nothing wrong with the URL, and those sa and ei simply means, that these get variables are assigned some values, which would then be used in your application, for may be session management or other purpose.
From the face of it, it doesn't appears to be any hackable stuff.

Resources